*Fix a crash caused by archaedas script.
--HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user