Закрывает одну задачу в #24.

This commit is contained in:
Igor Barkov (iwork) 2021-01-25 20:09:34 +02:00
parent eaf8c39163
commit 81561e556c

View File

@ -1,7 +1,8 @@
<?php <?php
// Магия восстагновления здоровья // Магия восстагновления здоровья
use Battles\Magic\Magic;
use Battles\User; use Battles\User;
class Healing extends \Battles\Magic\Magic class Healing extends Magic
{ {
private $target; private $target;
private $magicPower; private $magicPower;
@ -45,6 +46,6 @@ class Healing extends \Battles\Magic\Magic
} else { } else {
$this->target = new User($this->target); $this->target = new User($this->target);
} }
return ($this->isVisible($caster, $this->target) && $this->isNotDead($caster) && $this->enoughMana($caster)); return $this->isVisible($caster, $this->target) && $this->isNotDead($caster) && $this->enoughMana($caster) && $this->skillCheck($caster);
} }
} }