Закрывает одну задачу в #24.
This commit is contained in:
parent
eaf8c39163
commit
81561e556c
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user