Esempio n. 1
0
 public override void DoMagic(Magician magician, int strength = 0)
 {
     if (magician.State == Character.CharacterState.Poisoned)
     {
         magician.ChangePoison();
     }
 }
Esempio n. 2
0
 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();
     }
 }
Esempio n. 3
0
        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);
            }
        }