DealDamageEffect know how much was really dealt

This commit is contained in:
henriquenakashima 2020-09-19 22:58:23 -04:00
parent 8423a2a87a
commit 169210efbe
4 changed files with 15 additions and 7 deletions

View file

@ -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;}
}