mixedcards/Assets/Battle/Effects/DealDamageEffect.cs
2020-09-19 22:58:23 -04:00

23 lines
630 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DealDamageEffect : IBattleEffect
{
private BattleParticipant target;
private int amount;
private int amountDealt;
public DealDamageEffect(BattleParticipant target, int amount) {
this.target = target;
this.amount = amount;
}
public void Apply(IBattleEffectResolver resolver) {
this.amountDealt = resolver.DealDamage(this);
}
public BattleParticipant Target {get => this.target;}
public int Amount {get => this.amount;}
public int AmountDealt {get => this.amountDealt;}
}