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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user