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
@@ -248,7 +248,7 @@ namespace Game.Movement
if (eventid != 0)
{
Log.outDebug(LogFilter.MapsScript, $"FlightPathMovementGenerator::DoEventIfAny: taxi {(departure ? "departure" : "arrival")} event {eventid} of node {node.NodeIndex} of path {node.PathID} for player {owner.GetName()}");
owner.GetMap().ScriptsStart(ScriptsType.Event, eventid, owner, owner);
GameEvents.Trigger(eventid, owner, owner);
}
}