Core/Scripts: Merged ZoneScript::ProcessEvent methods into one accepting WorldObject* parameter
This commit is contained in:
@@ -138,11 +138,13 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void ProcessEvent(GameObject* go, uint32 eventId)
|
||||
void ProcessEvent(WorldObject* obj, uint32 eventId)
|
||||
{
|
||||
if (eventId == EVENT_FOCUSING_IRIS)
|
||||
{
|
||||
go->Delete(); // this is not the best way.
|
||||
if (GameObject* go = obj->ToGameObject())
|
||||
go->Delete(); // this is not the best way.
|
||||
|
||||
if (Creature* malygos = instance->GetCreature(malygosGUID))
|
||||
malygos->GetMotionMaster()->MovePoint(4, 770.10f, 1275.33f, 267.23f); // MOVE_INIT_PHASE_ONE
|
||||
|
||||
@@ -151,11 +153,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
// eliminate compile warning
|
||||
void ProcessEvent(Unit* /*unit*/, uint32 /*eventId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void VortexHandling()
|
||||
{
|
||||
if (Creature* malygos = instance->GetCreature(malygosGUID))
|
||||
|
||||
@@ -83,11 +83,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void ProcessEvent(GameObject* /*go*/, uint32 /*eventId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void ProcessEvent(Unit* /*unit*/, uint32 eventId)
|
||||
void ProcessEvent(WorldObject* /*unit*/, uint32 eventId)
|
||||
{
|
||||
if (eventId != EVENT_CALL_DRAGON)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user