public HandleStatusEffects(Battle battle, StatusEffectEvent statusEffectEvent, ThinkAction thinkAction = null, PartyMember partyMember = null) : base(battle) { if (thinkAction == null && partyMember == null) throw new Exception("Either ThinkAction or PartyMember must not be null"); this.thinkAction = thinkAction; this.partyMember = partyMember ?? thinkAction.Actor; this.statusEffectEvent = statusEffectEvent; }
public HandleStatusEffects(Battle battle, StatusEffectEvent statusEffectEvent, ThinkAction thinkAction = null, PartyMember partyMember = null) : base(battle) { if (thinkAction == null && partyMember == null) { throw new Exception("Either ThinkAction or PartyMember must not be null"); } this.thinkAction = thinkAction; this.partyMember = partyMember ?? thinkAction.Actor; this.statusEffectEvent = statusEffectEvent; }