IBattleEffectResolver takes in the effects as params

This commit is contained in:
henriquenakashima 2020-09-20 11:58:35 -04:00
parent 8b539e1b5c
commit c2e8b526b6
6 changed files with 43 additions and 33 deletions

View file

@ -16,9 +16,13 @@ public class AcquireCardsEffect : IBattleEffect
public void Apply(IBattleEffectResolver resolver) {
if (this.participant.IsHero()) {
resolver.AcquireHeroCards(this.cardIds, this.zone, (BattleHero) this.participant);
resolver.AcquireHeroCards(this);
} else {
throw new System.NotImplementedException();
}
}
public CardId[] CardIds {get => this.cardIds;}
public BattleZone Zone {get => this.zone;}
public BattleParticipant Participant {get => this.participant;}
}