mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Battlegrounds: Remove temporary currency bonus auras before rewarding player at battleground end
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user