diff options
author | Spp <none@none> | 2010-05-04 17:30:50 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-05-04 17:30:50 +0200 |
commit | a65f6ab60e11ace5464cacbfaef6f59673da9687 (patch) | |
tree | bd435556f81b0056b3d5f1fa387686ca85e202ae /src/game/BattleGround.cpp | |
parent | 9207757861b2c8670c68d23b6fb36e795c958af3 (diff) |
Remove Marks and Quest Reward at BG finish.
Patch by Gyullo
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r-- | src/game/BattleGround.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
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() |