Added AlteracValley Battleground
Port From (https://github.com/TrinityCore/TrinityCore)
This commit is contained in:
@@ -3,15 +3,15 @@
|
|||||||
|
|
||||||
using Framework.Constants;
|
using Framework.Constants;
|
||||||
using Framework.Database;
|
using Framework.Database;
|
||||||
using Game.Arenas;
|
using Game.BattleGrounds.Zones;
|
||||||
|
using Game.BattleGrounds.Zones.AlteracValley;
|
||||||
|
using Game.BattleGrounds.Zones.EyeofStorm;
|
||||||
using Game.DataStorage;
|
using Game.DataStorage;
|
||||||
using Game.Entities;
|
using Game.Entities;
|
||||||
using Game.Networking.Packets;
|
using Game.Networking.Packets;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Game.BattleGrounds.Zones;
|
|
||||||
using Game.BattleGrounds.Zones.EyeofStorm;
|
|
||||||
|
|
||||||
namespace Game.BattleGrounds
|
namespace Game.BattleGrounds
|
||||||
{
|
{
|
||||||
@@ -25,7 +25,7 @@ namespace Game.BattleGrounds
|
|||||||
public void DeleteAllBattlegrounds()
|
public void DeleteAllBattlegrounds()
|
||||||
{
|
{
|
||||||
foreach (var data in bgDataStore.Values.ToList())
|
foreach (var data in bgDataStore.Values.ToList())
|
||||||
while(!data.m_Battlegrounds.Empty())
|
while (!data.m_Battlegrounds.Empty())
|
||||||
data.m_Battlegrounds.First().Value.Dispose();
|
data.m_Battlegrounds.First().Value.Dispose();
|
||||||
|
|
||||||
bgDataStore.Clear();
|
bgDataStore.Clear();
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user