Core/Creatures: fixed an edge case assert triggered by the new focus handling
(ported commit: 6590a0bfcefe7b8e5f87c82ba5ab4df2c72be418)
This commit is contained in:
1 parent
249fa6bf54
commit
cbfb41f0ef
1 file changed
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user