@@ -3481,7 +3481,7 @@ void AuraEffect::HandleAuraModSchoolImmunity(AuraApplication const* aurApp, uint
|
||||
{
|
||||
bool banishFound = false;
|
||||
Unit::AuraEffectList const& banishAuras = target->GetAuraEffectsByType(GetAuraType());
|
||||
for (Unit::AuraEffectList::const_iterator i = banishAuras.begin(); i != banishAuras.end(); ++i)
|
||||
for (Unit::AuraEffectList::const_iterator i = banishAuras.begin(); i != banishAuras.end(); ++i)
|
||||
if ((*i)->GetSpellInfo()->Mechanic == MECHANIC_BANISH)
|
||||
{
|
||||
banishFound = true;
|
||||
@@ -4594,7 +4594,7 @@ void AuraEffect::HandleNoReagentUseAura(AuraApplication const* aurApp, uint8 mod
|
||||
|
||||
flag96 mask;
|
||||
Unit::AuraEffectList const& noReagent = target->GetAuraEffectsByType(SPELL_AURA_NO_REAGENT_USE);
|
||||
for (Unit::AuraEffectList::const_iterator i = noReagent.begin(); i != noReagent.end(); ++i)
|
||||
for (Unit::AuraEffectList::const_iterator i = noReagent.begin(); i != noReagent.end(); ++i)
|
||||
mask |= (*i)->m_spellInfo->Effects[(*i)->m_effIndex].SpellClassMask;
|
||||
|
||||
target->SetUInt32Value(PLAYER_NO_REAGENT_COST_1 , mask[0]);
|
||||
@@ -5189,7 +5189,7 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
|
||||
target->CastCustomSpell(target, 50322, &bp0, NULL, NULL, true);
|
||||
}
|
||||
else
|
||||
target-> RemoveAurasDueToSpell(50322);
|
||||
target->RemoveAurasDueToSpell(50322);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -6173,7 +6173,7 @@ void AuraEffect::HandlePeriodicDamageAurasTick(Unit* target, Unit* caster) const
|
||||
|
||||
uint32 absorb = 0;
|
||||
uint32 resist = 0;
|
||||
CleanDamage cleanDamage = CleanDamage(0, 0, BASE_ATTACK, MELEE_HIT_NORMAL);
|
||||
CleanDamage cleanDamage = CleanDamage(0, 0, BASE_ATTACK, MELEE_HIT_NORMAL);
|
||||
|
||||
// ignore non positive values (can be result apply spellmods to aura damage
|
||||
uint32 damage = std::max(GetAmount(), 0);
|
||||
@@ -6466,7 +6466,7 @@ void AuraEffect::HandlePeriodicHealAurasTick(Unit* target, Unit* caster) const
|
||||
caster->DealDamageMods(caster, funnelDamage, &funnelAbsorb);
|
||||
caster->SendSpellNonMeleeDamageLog(caster, GetId(), funnelDamage, GetSpellInfo()->GetSchoolMask(), funnelAbsorb, 0, false, 0, false);
|
||||
|
||||
CleanDamage cleanDamage = CleanDamage(0, 0, BASE_ATTACK, MELEE_HIT_NORMAL);
|
||||
CleanDamage cleanDamage = CleanDamage(0, 0, BASE_ATTACK, MELEE_HIT_NORMAL);
|
||||
caster->DealDamage(caster, funnelDamage, &cleanDamage, NODAMAGE, GetSpellInfo()->GetSchoolMask(), GetSpellInfo(), true);
|
||||
}
|
||||
|
||||
|
||||
@@ -453,7 +453,7 @@ void Aura::_Remove(AuraRemoveMode removeMode)
|
||||
ApplicationMap::iterator appItr = m_applications.begin();
|
||||
for (appItr = m_applications.begin(); appItr != m_applications.end();)
|
||||
{
|
||||
AuraApplication * aurApp = appItr->second;
|
||||
AuraApplication * aurApp = appItr->second;
|
||||
Unit* target = aurApp->GetTarget();
|
||||
target->_UnapplyAura(aurApp, removeMode);
|
||||
appItr = m_applications.begin();
|
||||
|
||||
Reference in New Issue
Block a user