Skip to content

Commit 3001b11

Browse files
authored
chore(Core/Battleground): expose damange,healing and kills attribute for modules (azerothcore#24801)
1 parent e3f6693 commit 3001b11

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/server/game/Battlegrounds/BattlegroundScore.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ struct AC_GAME_API BattlegroundScore
5959
friend class Arena;
6060
friend class Battleground;
6161

62-
protected:
62+
public:
63+
[[nodiscard]] uint32 GetKillingBlows() const { return KillingBlows; }
64+
[[nodiscard]] uint32 GetDamageDone() const { return DamageDone; }
65+
[[nodiscard]] uint32 GetHealingDone() const { return HealingDone; }
66+
67+
protected:
6368
BattlegroundScore(ObjectGuid playerGuid) : PlayerGuid(playerGuid) { }
6469
virtual ~BattlegroundScore() = default;
6570

@@ -97,12 +102,9 @@ struct AC_GAME_API BattlegroundScore
97102
// For Logging purpose
98103
virtual std::string ToString() const { return ""; }
99104

100-
[[nodiscard]] uint32 GetKillingBlows() const { return KillingBlows; }
101105
[[nodiscard]] uint32 GetDeaths() const { return Deaths; }
102106
[[nodiscard]] uint32 GetHonorableKills() const { return HonorableKills; }
103107
[[nodiscard]] uint32 GetBonusHonor() const { return BonusHonor; }
104-
[[nodiscard]] uint32 GetDamageDone() const { return DamageDone; }
105-
[[nodiscard]] uint32 GetHealingDone() const { return HealingDone; }
106108

107109
[[nodiscard]] virtual uint32 GetAttr1() const { return 0; }
108110
[[nodiscard]] virtual uint32 GetAttr2() const { return 0; }

0 commit comments

Comments
 (0)