aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2019-08-12 19:42:49 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-18 20:31:57 +0100
commit97bf9278a8d347badc85d7bcefdba0c1afb275e3 (patch)
treea9169404d2db8f139cdd724036c851744ca807f7 /src
parentfc7ea1803972f79678b71ac172927be6a03ad1b0 (diff)
Entities/Creature: Fix an edge case assertion failure with pets dying in specific situations while casting spells.
(cherry picked from commit 6590a0bfcefe7b8e5f87c82ba5ab4df2c72be418)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Creature/Creature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp
index 34889a5cea7..492729909b6 100644
--- a/src/server/game/Entities/Creature/Creature.cpp
+++ b/src/server/game/Entities/Creature/Creature.cpp
@@ -3259,7 +3259,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)
{