*Fix a crash caused by archaedas script.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-07-01 18:14:46 -05:00
parent de4faabbcb
commit 9a2588a454
@@ -385,12 +385,11 @@ struct TRINITY_DLL_DECL mob_stonekeepersAI : public ScriptedAI
DoMeleeAttackIfReady(); DoMeleeAttackIfReady();
} }
void DamageTaken (Unit *attacker, uint32 &damage) { void JustDied(Unit *attacker)
if (damage > m_creature->GetHealth()) { {
DoCast (m_creature, SPELL_SELF_DESTRUCT,true); DoCast (m_creature, SPELL_SELF_DESTRUCT,true);
if(pInstance) if(pInstance)
pInstance->SetData(NULL, 1); // activate next stonekeeper pInstance->SetData(NULL, 1); // activate next stonekeeper
}
} }
}; };