DealDamage and AddBlock are effects

This commit is contained in:
henriquenakashima 2020-09-19 21:33:32 -04:00
parent 8b33f3ff5a
commit cbc8c8b6cd
9 changed files with 71 additions and 3 deletions

View file

@ -0,0 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DealDamageEffect : IBattleEffect
{
private BattleParticipant target;
private int amount;
public DealDamageEffect(BattleParticipant target, int amount) {
this.target = target;
this.amount = amount;
}
public void Apply(IBattleEffectResolver resolver) {
resolver.DealDamage(this.target, this.amount);
}
}