--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2010-08-06 23:22:21 +02:00
3 changed files with 5 additions and 5 deletions
@@ -806,7 +806,8 @@ void BattleGround::EndBattleGround(uint32 winner)
if (IsRandom() || BattleGroundMgr::IsBGWeekend(GetTypeID()))
{
UpdatePlayerScore(plr, SCORE_BONUS_HONOR, GetBonusHonorFromKill(win_kills));
plr->ModifyArenaPoints(win_arena);
if (CanAwardArenaPoints())
plr->ModifyArenaPoints(win_arena);
if (!plr->GetRandomWinner())
plr->SetRandomWinner(true);
}
@@ -311,6 +311,8 @@ enum BGHonorMode
BG_HONOR_MODE_NUM
};
#define BG_AWARD_ARENA_POINTS_MIN_LEVEL 71
/*
This class is used to:
1. Add player to battleground
@@ -574,6 +576,7 @@ class BattleGround
int32 m_TeamScores[BG_TEAMS_COUNT];
void RewardXPAtKill(Player* plr, Player* victim);
bool CanAwardArenaPoints() const { return m_LevelMin >= BG_AWARD_ARENA_POINTS_MIN_LEVEL; }
protected:
//this method is called, when BG cannot spawn its own spirit guide, or something is wrong, It correctly ends BattleGround