dev-magic-sharpen #29
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user