aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDuarte Duarte <dnpd.dd@gmail.com>2014-09-08 20:05:01 +0100
committerDuarte Duarte <dnpd.dd@gmail.com>2014-09-08 20:05:01 +0100
commit668fe43d51208738cb95c0d30a3077d998832b50 (patch)
treeb6fc256c52cdc98b53730589f62d9e87a1fed274 /src
parent3206acf1e4882945f95370998c6089dedcaff7a6 (diff)
parentbc021744d3aaf91b6bc06ee747efd23b25a6d7ae (diff)
Merge pull request #13069 from ShinDarth/434_PvPstats
Core/BG: add GetAttrX() to TP and BFG battlegrounds
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Battlegrounds/Zones/BattlegroundBFG.h3
-rw-r--r--src/server/game/Battlegrounds/Zones/BattlegroundTP.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundBFG.h b/src/server/game/Battlegrounds/Zones/BattlegroundBFG.h
index 1f539a414b2..e00c940e134 100644
--- a/src/server/game/Battlegrounds/Zones/BattlegroundBFG.h
+++ b/src/server/game/Battlegrounds/Zones/BattlegroundBFG.h
@@ -49,6 +49,9 @@ class BattlegroundBFGScore final : public BattlegroundScore
content << uint32(BasesDefended);
}
+ uint32 GetAttr1() const final override { return BasesAssaulted; }
+ uint32 GetAttr2() const final override { return BasesDefended; }
+
uint32 BasesAssaulted;
uint32 BasesDefended;
};
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundTP.h b/src/server/game/Battlegrounds/Zones/BattlegroundTP.h
index 3d34974d845..77f649d971c 100644
--- a/src/server/game/Battlegrounds/Zones/BattlegroundTP.h
+++ b/src/server/game/Battlegrounds/Zones/BattlegroundTP.h
@@ -49,6 +49,9 @@ class BattlegroundTPScore final : public BattlegroundScore
content << uint32(FlagReturns);
}
+ uint32 GetAttr1() const final override { return FlagCaptures; }
+ uint32 GetAttr2() const final override { return FlagReturns; }
+
uint32 FlagCaptures;
uint32 FlagReturns;
};