Implement Whirlwind

This commit is contained in:
henriquenakashima 2020-09-24 00:24:49 -04:00
parent 9413ebee7e
commit 6a6f07689e
18 changed files with 330 additions and 52 deletions

View file

@ -13,4 +13,18 @@ public class DamageTrigger : Trigger {
public bool IsTriggeredBy(DealDamageEffect effect) {
return effect.Amount > 0 && this.observedParticipants.Contains(effect.Target);
}
public bool IsTriggeredBy(MassDamageEffect effect) {
if (effect.Amount <= 0) {
return false;
}
foreach (BattleParticipant bp in this.observedParticipants) {
if (bp.Team == effect.Team) {
return true;
}
}
return false;
}
}