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 f11e9ba454 - Show all commits

View File

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