fix: Crash on unit charm (#15256)
This commit is contained in:
@@ -15888,7 +15888,10 @@ bool CharmInfo::AddSpellToActionBar(SpellInfo const* spellInfo, ActiveStates new
|
|||||||
{
|
{
|
||||||
WorldPacket data;
|
WorldPacket data;
|
||||||
creature->BuildCooldownPacket(data, SPELL_COOLDOWN_FLAG_NONE, spell_id, cooldown);
|
creature->BuildCooldownPacket(data, SPELL_COOLDOWN_FLAG_NONE, spell_id, cooldown);
|
||||||
creature->GetCharmer()->ToPlayer()->SendDirectMessage(&data);
|
if (creature->GetCharmer() && creature->GetCharmer()->IsPlayer())
|
||||||
|
{
|
||||||
|
creature->GetCharmer()->ToPlayer()->SendDirectMessage(&data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, 500ms);
|
}, 500ms);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user