*Remove obsolete code for Arcane Blast
*Reduce amount of auras removed at arena match start. --HG-- branch : trunk
This commit is contained in:
@@ -410,7 +410,11 @@ void BattleGround::Update(uint32 diff)
|
||||
Unit::AuraMap & aurMap = plr->GetAuras();
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -423,15 +423,6 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
|
||||
break;
|
||||
}
|
||||
|
||||
case SPELLFAMILY_MAGE:
|
||||
{
|
||||
// Arcane Blast
|
||||
if(m_spellInfo->SpellFamilyFlags[0] & 0x20000000)
|
||||
{
|
||||
m_caster->CastSpell(m_caster,36032,true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_WARRIOR:
|
||||
{
|
||||
// Bloodthirst
|
||||
|
||||
Reference in New Issue
Block a user