Core/Misc: Code style fixes and fix bug with fixed-level dependent removal of Tenacity buff
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user