Core/Scripts: Split OnCreatureCreate() and OnGameObjectCreate() into two virtual functions each.

Note to scripters: be aware that you will need to hook into the Remove functions if you want to do stuff at GO/creature removal.
Closes issue 5011.

--HG--
branch : trunk
This commit is contained in:
leak
2010-12-05 18:04:10 +01:00
parent dfa1e9532b
commit 6fe19b5a86
65 changed files with 1139 additions and 1132 deletions
@@ -71,15 +71,15 @@ public:
CthunPhase = 0;
}
void OnCreatureCreate(Creature* pCreature, bool /*add*/)
void OnCreatureCreate(Creature* creature)
{
switch (pCreature->GetEntry())
switch (creature->GetEntry())
{
case 15263: SkeramGUID = pCreature->GetGUID(); break;
case 15544: VemGUID = pCreature->GetGUID(); break;
case 15511: KriGUID = pCreature->GetGUID(); break;
case 15276: VeklorGUID = pCreature->GetGUID(); break;
case 15275: VeknilashGUID = pCreature->GetGUID(); break;
case 15263: SkeramGUID = creature->GetGUID(); break;
case 15544: VemGUID = creature->GetGUID(); break;
case 15511: KriGUID = creature->GetGUID(); break;
case 15276: VeklorGUID = creature->GetGUID(); break;
case 15275: VeknilashGUID = creature->GetGUID(); break;
}
}