dev-magic-sharpen #29
@ -5,7 +5,7 @@ class Magic
|
|||||||
{
|
{
|
||||||
protected $status;
|
protected $status;
|
||||||
|
|
||||||
protected function isVisible($caster, $target)
|
protected function isVisible($caster, $target):bool
|
||||||
{
|
{
|
||||||
if ($caster->battle != $target->battle || $caster->room != $target->room) {
|
if ($caster->battle != $target->battle || $caster->room != $target->room) {
|
||||||
$this->status = 'Вы не видите цель!';
|
$this->status = 'Вы не видите цель!';
|
||||||
@ -15,7 +15,7 @@ class Magic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function isNotDead($caster)
|
protected function isNotDead($caster):bool
|
||||||
{
|
{
|
||||||
if ($caster->health < 1) {
|
if ($caster->health < 1) {
|
||||||
$this->status = 'Вы мертвы!';
|
$this->status = 'Вы мертвы!';
|
||||||
@ -25,7 +25,7 @@ class Magic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function enoughMana($caster)
|
protected function enoughMana($caster):bool
|
||||||
{
|
{
|
||||||
if ($caster->mana < 1) {
|
if ($caster->mana < 1) {
|
||||||
$this->status = 'Недостаточно пыли!';
|
$this->status = 'Недостаточно пыли!';
|
||||||
@ -35,7 +35,7 @@ class Magic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function isNotInBattle($caster)
|
protected function isNotInBattle($caster):bool
|
||||||
{
|
{
|
||||||
if ($caster->battle) {
|
if ($caster->battle) {
|
||||||
$this->status = 'Невозможно применить в поединке!';
|
$this->status = 'Невозможно применить в поединке!';
|
||||||
|
Loading…
Reference in New Issue
Block a user