예제 #1
0
 public function apply(Player $player, Boss $boss, $turns)
 {
     $boss->inflictDamage(3);
     if ($boss->isDead()) {
         return;
     }
 }
예제 #2
0
 public function cast(Player $player, Boss $boss, EffectTracker $effects)
 {
     $player->reduceMana($this->getCost());
     $player->giveHealth(2);
     $boss->inflictDamage(2);
 }