void OnDamageInflicted(FightActor fighter, Damage damage) { if (fighter.IsAlive()) { return; } if (!(damage.Source is CharacterFighter)) { return; } if (damage.Spell == null) { UpdateStatus(ChallengeStatusEnum.FAILED, damage.Source); return; } if (fighter.IsIndirectSpellCast(damage.Spell) || fighter.IsPoisonSpellCast(damage.Spell)) { return; } UpdateStatus(ChallengeStatusEnum.FAILED, damage.Source); }