mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Creatures: fixed an edge case assert triggered by the new focus handling
(ported commit: 6590a0bfce)
This commit is contained in:
@@ -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