Skip to content

Commit

Permalink
Core/Battlegrounds: Remove temporary currency bonus auras before rewa…
Browse files Browse the repository at this point in the history
…rding player at battleground end
  • Loading branch information
Shocker committed Nov 26, 2011
1 parent ef9101e commit a2f6a2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/game/Battlegrounds/Battleground.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a2f6a2b

Please sign in to comment.