mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Fix possible crash
--HG-- branch : trunk
This commit is contained in:
@@ -69,7 +69,8 @@ struct TRINITY_DLL_DECL npc_drakuru_shacklesAI : public ScriptedAI
|
||||
else
|
||||
{
|
||||
DoCast(Rageclaw, SPELL_FREE_RAGECLAW, true);
|
||||
CAST_PLR(pWho)->CastSpell(Rageclaw, SPELL_UNLOCK_SHACKLE, true);
|
||||
if (pWho->GetTypeId() == TYPEID_PLAYER)
|
||||
CAST_PLR(pWho)->CastSpell(Rageclaw, SPELL_UNLOCK_SHACKLE, true);
|
||||
m_creature->setDeathState(DEAD);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user