From bc021744d3aaf91b6bc06ee747efd23b25a6d7ae Mon Sep 17 00:00:00 2001 From: ShinDarth Date: Mon, 8 Sep 2014 20:36:20 +0200 Subject: Core/BG: add GetAttrX() to TP and BFG battlegrounds --- src/server/game/Battlegrounds/Zones/BattlegroundBFG.h | 3 +++ src/server/game/Battlegrounds/Zones/BattlegroundTP.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src') 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; }; -- cgit v1.2.3