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

This commit is contained in:
Igor Barkov (iwork) 2021-01-25 20:09:34 +02:00
parent eaf8c39163
commit 81561e556c
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,8 @@
<?php
// Магия восстагновления здоровья
use Battles\Magic\Magic;
use Battles\User;
class Healing extends \Battles\Magic\Magic
class Healing extends Magic
{
private $target;
private $magicPower;
@ -45,6 +46,6 @@ class Healing extends \Battles\Magic\Magic
} else {
$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);
}
}