Implement Whirlwind
This commit is contained in:
parent
9413ebee7e
commit
6a6f07689e
18 changed files with 330 additions and 52 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue