Core/Battlegrounds: Made Battleground inherit ZoneScript

Port From (https://github.com/TrinityCore/TrinityCore/commit/21940405e009f5c1d201eb96d96ea251a3313af3)
This commit is contained in:
hondacrx
2023-01-04 16:37:19 -05:00
parent 54359e4109
commit 99dbb422e1
3 changed files with 13 additions and 10 deletions
-3
View File
@@ -70,9 +70,6 @@ namespace Game
public static void TriggerForMap(uint gameEventId, Map map, WorldObject source = null, WorldObject target = null)
{
BattlegroundMap bgMap = map.ToBattlegroundMap();
if (bgMap != null)
bgMap.GetBG().ProcessEvent(target, gameEventId, source);
map.ScriptsStart(ScriptsType.Event, gameEventId, source, target);
}
}