예제 #1
0
 public void StealMana(int amount, Battler opponent, bool direct = false)
 {
     if (!direct && !CanStealMana(opponent))
     {
         return;
     }
     opponent.Mana -= amount;
     Mana          += amount;
 }
예제 #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;
 }
예제 #3
0
 public bool CanStealMana(Battler opponent)
 {
     return(CanAttack() && !opponent.HasMonstersSummoned());
 }