Entities/Creature: Fix an edge case assertion failure with pets dying in specific situations while casting spells.

This commit is contained in:
Treeston
2019-08-12 19:42:49 +02:00
parent 028db8432e
commit 6590a0bfce

View File

@@ -3116,7 +3116,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)
{