public override void DoMagic(Magician magician, int strength = 0) { if (magician.State == Character.CharacterState.Poisoned) { magician.ChangePoison(); } }
public override void DoMagic(Magician magician, int strength = 0) { base.DoMagic(magician); if (can_use && magician.MP >= mp && magician.State == Character.CharacterState.Poisoned) { magician.MP -= mp; magician.ChangePoison(); } }
public override void DoMagic(Magician magician, int strength = 0) { if (strength > power) { strength = power; } power -= strength; if (magician.State != Character.CharacterState.Poisoned) { magician.ChangePoison(); magician.SetPoison(strength); } }