diff options
author | ShinDarth <borzifrancesco@gmail.com> | 2014-09-08 20:36:20 +0200 |
---|---|---|
committer | ShinDarth <borzifrancesco@gmail.com> | 2014-09-08 20:54:21 +0200 |
commit | bc021744d3aaf91b6bc06ee747efd23b25a6d7ae (patch) | |
tree | 559cef4fcb501fc92da41a293a271cf757e62fdb /src | |
parent | 6885eb4f2c7cf8941d4018b36a0b522e77092504 (diff) |
Core/BG: add GetAttrX() to TP and BFG battlegrounds
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Battlegrounds/Zones/BattlegroundBFG.h | 3 | ||||
-rw-r--r-- | src/server/game/Battlegrounds/Zones/BattlegroundTP.h | 3 |
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; }; |