diff options
author | Treeston <treeston.mmoc@gmail.com> | 2019-08-12 19:42:49 +0200 |
---|---|---|
committer | Treeston <treeston.mmoc@gmail.com> | 2019-08-12 19:43:38 +0200 |
commit | 6590a0bfcefe7b8e5f87c82ba5ab4df2c72be418 (patch) | |
tree | d33d42aff2ea33d0cd8d729f608bfda28dea0833 /src | |
parent | 028db8432eb220de198123871741fd8c36c52ebe (diff) |
Entities/Creature: Fix an edge case assertion failure with pets dying in specific situations while casting spells.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Creature/Creature.cpp | 2 |
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 b399af92b12..49169f90b2b 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -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) { |