mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Entities/Creature: Fix an edge case assertion failure with pets dying in specific situations while casting spells.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user