dev-magic-sharpen #29

Merged
lopar merged 7 commits from dev-magic-sharpen into master 2021-01-25 19:01:27 +00:00
Showing only changes of commit 81561e556c - Show all commits

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);
}
}