Core/Scripts: Begin unifying triggering gameevents (not the game_event db stuff)

Port From (https://github.com/TrinityCore/TrinityCore/commit/41a04a0c496c8c0c521eeaa76e34fbeb531cc1d9)
This commit is contained in:
hondacrx
2022-05-31 19:42:40 -04:00
parent 4fe0663b1d
commit da944ab528
7 changed files with 95 additions and 48 deletions
+1 -2
View File
@@ -772,8 +772,7 @@ namespace Game.Entities
if (eventid != 0)
{
Log.outDebug(LogFilter.Scripts, "Taxi {0} event {1} of node {2} of {3} path", departure ? "departure" : "arrival", eventid, node.Node.NodeIndex, GetName());
GetMap().ScriptsStart(ScriptsType.Event, eventid, this, this);
EventInform(eventid);
GameEvents.Trigger(eventid, this, this);
}
}