Beispiel #1
0
 public void superAttack(BaseChar other) {
   removeMana(60);
   attackMod += attack; // doubles attack
   baseAttack(other);
   baseAttack(other);
   attackMod -= attack; // restores attackMod
 }
Beispiel #2
0
 public void doubleAttack(BaseChar other) {
   removeMana(20);
   baseAttack(other);
   baseAttack(other);
 }
Beispiel #3
0
 public void sneak(BaseChar other) {
   removeMana(40);
   other.defenseMod -= other.defense; // makes total defense 0
   baseAttack(other);
   other.defenseMod += other.defense; // restore defenseMod
 }