From cbfb41f0ef585ba96133e8deaacacba46dc33cc5 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Tue, 13 Aug 2019 01:28:05 +0200 Subject: [PATCH] Core/Creatures: fixed an edge case assert triggered by the new focus handling (ported commit: 6590a0bfcefe7b8e5f87c82ba5ab4df2c72be418) --- src/server/game/Entities/Creature/Creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index fc2df30d2b8..84b7c0bdb5d 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -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) {