Compile fix and removed unneeded call in HomeMovementGenerator initialization

This commit is contained in:
Shauren committed 2011-07-22 20:10:48 +02:00
1 parent 4c9269cd54
commit 0a4f18fab3
2 files changed
+8 -20

No files matched your search

@@ -375,6 +375,9 @@ class npc_precious_icc : public CreatureScript
void JustDied(Unit* /*killer*/)
{
_summons.DespawnAll();
if (Creature* rotface = Unit::GetCreature(*me, _instance->GetData64(DATA_ROTFACE)))
if (rotface->isAlive())
rotface->AI()->Talk(SAY_PRECIOUS_DIES);
}
void UpdateAI(const uint32 diff)
@@ -413,13 +416,6 @@ class npc_precious_icc : public CreatureScript
DoMeleeAttackIfReady();
}
void JustDied(Unit* /*who*/)
{
if (Creature* rotface = Unit::GetCreature(*me, _instance->GetData64(DATA_ROTFACE)))
if (rotface->isAlive())
rotface->AI()->Talk(SAY_PRECIOUS_DIES);
}
private:
EventMap _events;
SummonList _summons;