*Remove obsolete code for Arcane Blast

*Reduce amount of auras removed at arena match start.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-05-25 17:04:52 +02:00
parent 73be810987
commit 93a9fef498
2 changed files with 5 additions and 10 deletions
+5 -1
View File
@@ -410,7 +410,11 @@ void BattleGround::Update(uint32 diff)
Unit::AuraMap & aurMap = plr->GetAuras(); Unit::AuraMap & aurMap = plr->GetAuras();
for(Unit::AuraMap::iterator iter = aurMap.begin(); iter != aurMap.end();) for(Unit::AuraMap::iterator iter = aurMap.begin(); iter != aurMap.end();)
{ {
if (iter->second->GetAuraDuration()<=30*IN_MILISECONDS) if (!iter->second->IsPermanent()
&& iter->second->GetAuraDuration()<=30*IN_MILISECONDS
&& iter->second->IsPositive()
&& (!(iter->second->GetSpellProto()->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY))
&& (!iter->second->IsAuraType(SPELL_AURA_MOD_INVISIBILITY)))
{ {
plr->RemoveAura(iter); plr->RemoveAura(iter);
} }
-9
View File
@@ -423,15 +423,6 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
break; break;
} }
case SPELLFAMILY_MAGE:
{
// Arcane Blast
if(m_spellInfo->SpellFamilyFlags[0] & 0x20000000)
{
m_caster->CastSpell(m_caster,36032,true);
}
break;
}
case SPELLFAMILY_WARRIOR: case SPELLFAMILY_WARRIOR:
{ {
// Bloodthirst // Bloodthirst