Core/Creatures: fixed an edge case assert triggered by the new focus handling

(ported commit: 6590a0bfce)
This commit is contained in:
Ovahlord
2019-08-13 01:28:05 +02:00
parent 249fa6bf54
commit cbfb41f0ef

View File

@@ -3032,7 +3032,7 @@ void Creature::SetSpellFocus(Spell const* focusSpell, WorldObject const* target)
bool Creature::HasSpellFocus(Spell const* focusSpell) const
{
if (!IsAlive()) // dead creatures cannot focus
if (isDead()) // dead creatures cannot focus
{
if (_spellFocusInfo.spell || _spellFocusInfo.delay)
{