Обращение к защищенной переменной через геттер.

This commit is contained in:
lopar 2021-05-12 22:04:33 +03:00
parent 2f4dfd84cf
commit 582cce3c17
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class CureInjury extends Magic
} else {
$this->target = new User($this->target);
}
$this->login = $this->target->login;
$this->login = $this->target->getLogin();
return ($this->isVisible($caster, $this->target) && $this->isNotDead($caster) && $this->enoughMana($caster) && $this->isNotInBattle($caster));
}
}