aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShocker <shocker@freakz.ro>2011-11-26 23:41:21 +0200
committerShauren <shauren.trinity@gmail.com>2025-02-01 18:01:21 +0100
commit41e48ff2e1464e0ea1271b4b171d2ea4460c41eb (patch)
tree90229fa3e9bee1791f2445fce0dbfb4cd362ec8e /src
parent4bec94451fb239a4e2007413b5691ed19fea6981 (diff)
Core/Battlegrounds: Remove temporary currency bonus auras before rewarding player at battleground end
(cherry picked from commit a2f6a2b6ca1473bb2581960132958d869feaa7cd)
Diffstat (limited to 'src')
-rw-r--r--src/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 938ac559b4c..b8fdda378f1 100644
--- a/src/server/game/Battlegrounds/Battleground.cpp
+++ b/src/server/game/Battlegrounds/Battleground.cpp
@@ -769,6 +769,10 @@ void Battleground::EndBattleground(uint32 winner)
CharacterDatabase.Execute(stmt);
}
+ // 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)
{