Exemple #1
0
 public void StealMana(int amount, Battler opponent, bool direct = false)
 {
     if (!direct && !CanStealMana(opponent))
     {
         return;
     }
     opponent.Mana -= amount;
     Mana          += amount;
 }
Exemple #2
0
 public void StealMana(Monster attacker, Battler opponent, bool direct = false)
 {
     if (!attacker.CanAttack || (!direct && !CanStealMana(opponent)))
     {
         return;
     }
     StealMana(attacker.Level, opponent, direct);
     attacker.CanAttack = false;
     HasMoved           = true;
 }
Exemple #3
0
 public bool CanStealMana(Battler opponent)
 {
     return(CanAttack() && !opponent.HasMonstersSummoned());
 }