diff options
Diffstat (limited to 'src/server/game/Battlegrounds/Battleground.h')
-rw-r--r-- | src/server/game/Battlegrounds/Battleground.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.h b/src/server/game/Battlegrounds/Battleground.h index b1dad05c67f..32b6075e94a 100644 --- a/src/server/game/Battlegrounds/Battleground.h +++ b/src/server/game/Battlegrounds/Battleground.h @@ -21,6 +21,7 @@ #include "DBCEnums.h" #include "Duration.h" #include "ObjectGuid.h" +#include "Optional.h" #include "Position.h" #include "SharedDefines.h" #include "UniqueTrackablePtr.h" @@ -43,6 +44,7 @@ struct BattlegroundScore; struct BattlegroundTemplate; struct PVPDifficultyEntry; struct WorldSafeLocsEntry; +enum class HonorGainSource : uint8; namespace WorldPackets { @@ -378,7 +380,7 @@ class TC_GAME_API Battleground BattlegroundScore const* GetBattlegroundScore(Player* player) const; - bool UpdatePlayerScore(Player* player, uint32 type, uint32 value, bool doAddHonor = true); + bool UpdatePlayerScore(Player* player, uint32 type, uint32 value, bool doAddHonor = true, Optional<HonorGainSource> source = {}); void UpdatePvpStat(Player* player, uint32 pvpStatId, uint32 value); static TeamId GetTeamIndexByTeamId(Team team) { return team == ALLIANCE ? TEAM_ALLIANCE : TEAM_HORDE; } |