DealDamageEffect know how much was really dealt
This commit is contained in:
parent
8423a2a87a
commit
169210efbe
4 changed files with 15 additions and 7 deletions
|
|
@ -6,6 +6,7 @@ public class DealDamageEffect : IBattleEffect
|
|||
{
|
||||
private BattleParticipant target;
|
||||
private int amount;
|
||||
private int amountDealt;
|
||||
|
||||
public DealDamageEffect(BattleParticipant target, int amount) {
|
||||
this.target = target;
|
||||
|
|
@ -13,9 +14,10 @@ public class DealDamageEffect : IBattleEffect
|
|||
}
|
||||
|
||||
public void Apply(IBattleEffectResolver resolver) {
|
||||
resolver.DealDamage(this);
|
||||
this.amountDealt = resolver.DealDamage(this);
|
||||
}
|
||||
|
||||
public BattleParticipant Target {get => this.target;}
|
||||
public int Amount {get => this.amount;}
|
||||
public int AmountDealt {get => this.amountDealt;}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue