mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 00:48:39 +01:00
Core/GameEvents: tempoarily use source as game event reference for now
This commit is contained in:
@@ -28,14 +28,14 @@ void GameEvents::Trigger(uint32 gameEventId, WorldObject* source, WorldObject* t
|
||||
{
|
||||
ASSERT(source || target, "At least one of [source] or [target] must be provided");
|
||||
|
||||
WorldObject* refForMapAndZoneScript = Coalesce<WorldObject>(source, target);
|
||||
WorldObject* refForMapAndZoneScript = source; // Coalesce<WorldObject>(source, target);
|
||||
|
||||
ZoneScript* zoneScript = refForMapAndZoneScript->GetZoneScript();
|
||||
if (!zoneScript && refForMapAndZoneScript->IsPlayer())
|
||||
zoneScript = refForMapAndZoneScript->FindZoneScript();
|
||||
|
||||
if (zoneScript)
|
||||
zoneScript->ProcessEvent(target, gameEventId, source);
|
||||
zoneScript->ProcessEvent(source, gameEventId);
|
||||
|
||||
Map* map = refForMapAndZoneScript->GetMap();
|
||||
if (target)
|
||||
|
||||
Reference in New Issue
Block a user