Core/Misc: Code style fixes and fix bug with fixed-level dependent removal of Tenacity buff

This commit is contained in:
tobmaps
2011-06-28 07:10:06 +07:00
parent 78859c9963
commit c5632bf9a8
2 changed files with 37 additions and 37 deletions
@@ -1079,7 +1079,7 @@ void BattlefieldWG::UpdateTenacity()
{
for (GuidSet::const_iterator itr = m_players[team].begin(); itr != m_players[team].end(); ++itr)
if (Player* plr = sObjectMgr->GetPlayer((*itr)))
if (plr->getLevel() > 76)
if (plr->getLevel() >= m_MinLevel))
plr->RemoveAurasDueToSpell(SPELL_TENACITY);
for (GuidSet::const_iterator itr = m_vehicles[team].begin(); itr != m_vehicles[team].end(); ++itr)