aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpp <none@none>2010-05-04 17:30:50 +0200
committerSpp <none@none>2010-05-04 17:30:50 +0200
commita65f6ab60e11ace5464cacbfaef6f59673da9687 (patch)
treebd435556f81b0056b3d5f1fa387686ca85e202ae
parent9207757861b2c8670c68d23b6fb36e795c958af3 (diff)
Remove Marks and Quest Reward at BG finish.
Patch by Gyullo --HG-- branch : trunk
-rw-r--r--src/game/BattleGround.cpp10
-rw-r--r--src/game/BattleGround.h4
2 files changed, 5 insertions, 9 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()
diff --git a/src/game/BattleGround.h b/src/game/BattleGround.h
index e857e4b7e5b..ed3e8f2a87e 100644
--- a/src/game/BattleGround.h
+++ b/src/game/BattleGround.h
@@ -446,11 +446,11 @@ class BattleGround
void CastSpellOnTeam(uint32 SpellID, uint32 TeamID);
void RewardHonorToTeam(uint32 Honor, uint32 TeamID);
void RewardReputationToTeam(uint32 faction_id, uint32 Reputation, uint32 TeamID);
- void RewardMark(Player *plr,uint32 count);
+ /*void RewardMark(Player *plr,uint32 count);
void SendRewardMarkByMail(Player *plr,uint32 mark, uint32 count);
void RewardItem(Player *plr, uint32 item_id, uint32 count);
void RewardQuestComplete(Player *plr);
- void RewardSpellCast(Player *plr, uint32 spell_id);
+ void RewardSpellCast(Player *plr, uint32 spell_id);*/
void UpdateWorldState(uint32 Field, uint32 Value);
void UpdateWorldStateForPlayer(uint32 Field, uint32 Value, Player *Source);
void EndBattleGround(uint32 winner);