mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Remove Marks and Quest Reward at BG finish.
Patch by Gyullo --HG-- branch : trunk
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user