aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShocker <shocker@freakz.ro>2011-11-26 23:41:21 +0200
committerShocker <shocker@freakz.ro>2011-11-26 23:41:21 +0200
commita2f6a2b6ca1473bb2581960132958d869feaa7cd (patch)
treed96f82ba48a13b44af5157444dbe916ca642dff5 /src
parentef9101ea83a577dbf605402b04047a91dfd2c4d6 (diff)
Core/Battlegrounds: Remove temporary currency bonus auras before rewarding player at battleground end
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Battlegrounds/Battleground.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp
index 7cfd4dec28e..e978fec46f4 100755
--- a/src/server/game/Battlegrounds/Battleground.cpp
+++ b/src/server/game/Battlegrounds/Battleground.cpp
@@ -836,6 +836,10 @@ void Battleground::EndBattleground(uint32 winner)
uint32 loser_kills = player->GetRandomWinner() ? BG_REWARD_LOSER_HONOR_LAST : BG_REWARD_LOSER_HONOR_FIRST;
uint32 winner_arena = player->GetRandomWinner() ? BG_REWARD_WINNER_ARENA_LAST : BG_REWARD_WINNER_ARENA_FIRST;
+ // remove temporary currency bonus auras before rewarding player
+ player->RemoveAura(SPELL_HONORABLE_DEFENDER_25Y);
+ player->RemoveAura(SPELL_HONORABLE_DEFENDER_60Y);
+
// Reward winner team
if (team == winner)
{