Core/Battlegrounds: Use fields from DB2/battleground_template data in the Battleground Class

Port From (https://github.com/TrinityCore/TrinityCore/commit/d7623adf0e6b8c5cdc1e468b89172ed7db63fe92)
This commit is contained in:
hondacrx
2020-05-20 14:58:21 -04:00
parent 96fffc67d6
commit 2acce62671
15 changed files with 245 additions and 220 deletions
@@ -26,7 +26,7 @@ namespace Game.BattleGrounds.Zones
{
class BgArathiBasin : Battleground
{
public BgArathiBasin()
public BgArathiBasin(BattlegroundTemplate battlegroundTemplate) : base(battlegroundTemplate)
{
m_IsInformedNearVictory = false;
m_BuffChange = true;
@@ -25,7 +25,7 @@ namespace Game.BattleGrounds.Zones
{
class BgEyeofStorm : Battleground
{
public BgEyeofStorm()
public BgEyeofStorm(BattlegroundTemplate battlegroundTemplate) : base(battlegroundTemplate)
{
m_BuffChange = true;
BgObjects = new ObjectGuid[ABObjectTypes.Max];
@@ -26,7 +26,7 @@ namespace Game.BattleGrounds.Zones
{
public class BgStrandOfAncients : Battleground
{
public BgStrandOfAncients()
public BgStrandOfAncients(BattlegroundTemplate battlegroundTemplate) : base(battlegroundTemplate)
{
StartMessageIds[BattlegroundConst.EventIdFourth] = 0;
@@ -25,7 +25,7 @@ namespace Game.BattleGrounds.Zones
{
class BgWarsongGluch : Battleground
{
public BgWarsongGluch()
public BgWarsongGluch(BattlegroundTemplate battlegroundTemplate) : base(battlegroundTemplate)
{
BgObjects = new ObjectGuid[WSGObjectTypes.Max];
BgCreatures = new ObjectGuid[WSGCreatureTypes.Max];