From a65f6ab60e11ace5464cacbfaef6f59673da9687 Mon Sep 17 00:00:00 2001 From: Spp Date: Tue, 4 May 2010 17:30:50 +0200 Subject: Remove Marks and Quest Reward at BG finish. Patch by Gyullo --HG-- branch : trunk --- src/game/BattleGround.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/game/BattleGround.cpp') diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index ee6cc5c4765..2eac1e5c758 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -794,14 +794,9 @@ void BattleGround::EndBattleGround(uint32 winner) } } + // Reward winner team if (team == winner) - { - RewardMark(plr,ITEM_WINNER_COUNT); - RewardQuestComplete(plr); plr->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_WIN_BG, 1); - } - else if (winner) - RewardMark(plr,ITEM_LOSER_COUNT); plr->SetHealth(plr->GetMaxHealth()); plr->SetPower(POWER_MANA, plr->GetMaxPower(POWER_MANA)); @@ -855,6 +850,7 @@ uint32 BattleGround::GetBattlemasterEntry() const } } +/* void BattleGround::RewardMark(Player *plr,uint32 count) { BattleGroundMarks mark; @@ -988,7 +984,7 @@ void BattleGround::RewardQuestComplete(Player *plr) RewardSpellCast(plr, quest); } - +*/ void BattleGround::BlockMovement(Player *plr) { plr->SetClientControl(plr, 0); // movement disabled NOTE: the effect will be automatically removed by client when the player is teleported from the battleground, so no need to send with uint8(1) in RemovePlayerAtLeave() -- cgit v1.2.3