Core/SAI: Implemented new source type SMART_SCRIPT_TYPE_EVENT (3)

Port From (https://github.com/TrinityCore/TrinityCore/commit/d015711fbb7a8bf57f7bb64ba8113c942d5125de)
This commit is contained in:
hondacrx
2023-07-23 18:06:11 -04:00
parent bef7b60baa
commit 25a4d5b354
10 changed files with 208 additions and 74 deletions
+3 -1
View File
@@ -23,7 +23,8 @@ namespace Game
if (zoneScript != null)
zoneScript.ProcessEvent(target, gameEventId, source);
Map map = refForMapAndZoneScript.GetMap();
Global.ScriptMgr.OnEventTrigger(target, source, gameEventId);
GameObject goTarget = target?.ToGameObject();
if (goTarget != null)
{
@@ -36,6 +37,7 @@ namespace Game
if (sourcePlayer != null)
TriggerForPlayer(gameEventId, sourcePlayer);
Map map = refForMapAndZoneScript.GetMap();
TriggerForMap(gameEventId, map, source, target);
}