Scripts/Pit of Saron: Fix a crash at Scourgelord Tyrannus.
Closes issue #4601 --HG-- branch : trunk
This commit is contained in:
@@ -328,6 +328,9 @@ class spell_tyrannus_overlord_brand : public SpellScriptLoader
|
||||
|
||||
void OnRemove(AuraEffect const* /*aurEff*/, AuraApplication const* aurApp, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
if (aurApp->GetTarget()->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
delete aurApp->GetTarget()->GetAI();
|
||||
aurApp->GetTarget()->SetAI(oldAI);
|
||||
aurApp->GetTarget()->IsAIEnabled = oldAIState;
|
||||
|
||||
Reference in New Issue
Block a user