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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user