diff options
author | maximius <none@none> | 2009-09-09 23:52:23 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-09-09 23:52:23 -0700 |
commit | 7e1845a3879c689dc75a4ce7440bfb3706c97181 (patch) | |
tree | fd958ade1d683c9351d6e7a46cf1c234b19da411 | |
parent | 790a04bb299c3e3140b5d77f988bb86a49e60d0f (diff) |
*"Level restrictions have been applied to Lake Wintergrasp. Only players level 70 or higher can count towards the tenacity tally or obtain the tenacity buff and get credit for victory or defeat. In addition, only players level 50 or higher will be able to use the portal to Wintergrasp." -- based on Gyullo's patch :)
--HG--
branch : trunk
-rw-r--r-- | src/game/Wintergrasp.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp index bfe931770bb..ec43a887e1a 100644 --- a/src/game/Wintergrasp.cpp +++ b/src/game/Wintergrasp.cpp @@ -705,10 +705,10 @@ void OPvPWintergrasp::HandleKill(Player *killer, Unit *victim) if(Group *pGroup = killer->GetGroup()) { for(GroupReference *itr = pGroup->GetFirstMember(); itr != NULL; itr = itr->next()) - if(itr->getSource()->IsAtGroupRewardDistance(victim)) + if(itr->getSource()->IsAtGroupRewardDistance(victim) && (itr->getSource()->getLevel() > 69)) PromotePlayer(itr->getSource()); } - else + else if(killer->getLevel() > 69) PromotePlayer(killer); } } @@ -755,7 +755,8 @@ void OPvPWintergrasp::UpdateTenacityStack() TeamId team = newStack > 0 ? TEAM_ALLIANCE : TEAM_HORDE; if(newStack < 0) newStack = -newStack; for(PlayerSet::iterator itr = m_players[team].begin(); itr != m_players[team].end(); ++itr) - (*itr)->SetAuraStack(SPELL_TENACITY, *itr, newStack); + if((*itr)->getLevel() > 69) + (*itr)->SetAuraStack(SPELL_TENACITY, *itr, newStack); for(CreatureSet::iterator itr = m_vehicles[team].begin(); itr != m_vehicles[team].end(); ++itr) (*itr)->SetAuraStack(SPELL_TENACITY_VEHICLE, *itr, newStack); } @@ -774,7 +775,7 @@ void OPvPWintergrasp::VehicleCastSpell(TeamId team, int32 spellId) const void OPvPWintergrasp::LieutenantCastSpell(TeamId team, int32 spellId) const { for(PlayerSet::const_iterator itr = m_players[team].begin(); itr != m_players[team].end(); ++itr) - if((*itr)->HasAura(SPELL_LIEUTENANT)) + if((*itr)->HasAura(SPELL_LIEUTENANT) && ((*itr)->getLevel() > 69)) (*itr)->CastSpell(*itr, (uint32)spellId, true); } |