Ejemplo n.º 1
0
 /**
  * Frappe l'adversaire
  */
 public function attack(BaseCreature $runner, BaseCreature $target)
 {
     $life = 15 + mt_rand(0, 10);
     $target->hit($life);
     $runner->heal($life / 2.0);
 }
Ejemplo n.º 2
0
Archivo: Heal.php Proyecto: gregwar/php
 /**
  * Frappe l'adversaire
  */
 public function attack(BaseCreature $runner, BaseCreature $target)
 {
     $runner->heal(25 + mt_rand(0, 10));
 }