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;
|
||||
|
||||
@@ -382,7 +382,7 @@ class instance_ulduar : public InstanceMapScript
|
||||
}
|
||||
}
|
||||
|
||||
void ProcessEvent(GameObject* /*gameObject*/, uint32 eventId)
|
||||
void ProcessEvent(WorldObject* /*gameObject*/, uint32 eventId)
|
||||
{
|
||||
// Flame Leviathan's Tower Event triggers
|
||||
Creature* FlameLeviathan = instance->GetCreature(LeviathanGUID);
|
||||
|
||||
@@ -795,7 +795,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void ProcessEvent(GameObject* /*pGO*/, uint32 uiEventId)
|
||||
void ProcessEvent(WorldObject* /*pGO*/, uint32 uiEventId)
|
||||
{
|
||||
switch (uiEventId)
|
||||
{
|
||||
@@ -805,10 +805,6 @@ public:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void ProcessEvent(Unit* /*unit*/, uint32 /*eventId*/)
|
||||
{
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user