@@ -1601,7 +1601,7 @@ void Unit::HandleEmoteCommand(Emote emoteId)
1601
1601
AuraEffectList const & resIgnoreAurasAb = attacker->GetAuraEffectsByType (SPELL_AURA_MOD_ABILITY_IGNORE_TARGET_RESIST);
1602
1602
for (AuraEffect const * aurEff : resIgnoreAurasAb)
1603
1603
{
1604
- if (aurEff->GetMiscValue () & SPELL_SCHOOL_MASK_NORMAL && aurEff->IsAffectedOnSpell (spellInfo))
1604
+ if (aurEff->GetMiscValue () & SPELL_SCHOOL_MASK_NORMAL && aurEff->IsAffectingSpell (spellInfo))
1605
1605
armor = std::floor (AddPct (armor, -aurEff->GetAmount ()));
1606
1606
}
1607
1607
@@ -1700,7 +1700,7 @@ void Unit::HandleEmoteCommand(Emote emoteId)
1700
1700
{
1701
1701
ignoredResistance += attacker->GetTotalAuraModifier (SPELL_AURA_MOD_ABILITY_IGNORE_TARGET_RESIST, [schoolMask, spellInfo](AuraEffect const * aurEff) -> bool
1702
1702
{
1703
- if ((aurEff->GetMiscValue () & schoolMask) && aurEff->IsAffectedOnSpell (spellInfo))
1703
+ if ((aurEff->GetMiscValue () & schoolMask) && aurEff->IsAffectingSpell (spellInfo))
1704
1704
return true ;
1705
1705
return false ;
1706
1706
});
@@ -1786,7 +1786,7 @@ void Unit::HandleEmoteCommand(Emote emoteId)
1786
1786
if (!(aurEff->GetMiscValue () & damageInfo.GetSchoolMask ()))
1787
1787
return false ;
1788
1788
1789
- if (!aurEff->IsAffectedOnSpell (damageInfo.GetSpellInfo ()))
1789
+ if (!aurEff->IsAffectingSpell (damageInfo.GetSpellInfo ()))
1790
1790
return false ;
1791
1791
1792
1792
return true ;
@@ -2488,7 +2488,7 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit* victim, SpellInfo const* spellInfo
2488
2488
AuraEffectList const & ignore = GetAuraEffectsByType (SPELL_AURA_IGNORE_COMBAT_RESULT);
2489
2489
for (AuraEffect const * aurEff : ignore)
2490
2490
{
2491
- if (!aurEff->IsAffectedOnSpell (spellInfo))
2491
+ if (!aurEff->IsAffectingSpell (spellInfo))
2492
2492
continue ;
2493
2493
2494
2494
switch (aurEff->GetMiscValue ())
@@ -4567,7 +4567,7 @@ bool Unit::HasAuraTypeWithAffectMask(AuraType auraType, SpellInfo const* affecte
4567
4567
{
4568
4568
AuraEffectList const & mTotalAuraList = GetAuraEffectsByType (auraType);
4569
4569
for (AuraEffectList::const_iterator i = mTotalAuraList .begin (); i != mTotalAuraList .end (); ++i)
4570
- if ((*i)->IsAffectedOnSpell (affectedSpell))
4570
+ if ((*i)->IsAffectingSpell (affectedSpell))
4571
4571
return true ;
4572
4572
return false ;
4573
4573
}
@@ -4644,7 +4644,7 @@ AuraEffect* Unit::IsScriptOverriden(SpellInfo const* spell, int32 script) const
4644
4644
for (AuraEffectList::const_iterator i = auras.begin (); i != auras.end (); ++i)
4645
4645
{
4646
4646
if ((*i)->GetMiscValue () == script)
4647
- if ((*i)->IsAffectedOnSpell (spell))
4647
+ if ((*i)->IsAffectingSpell (spell))
4648
4648
return (*i);
4649
4649
}
4650
4650
return nullptr ;
@@ -4895,7 +4895,7 @@ int32 Unit::GetTotalAuraModifierByAffectMask(AuraType auraType, SpellInfo const*
4895
4895
{
4896
4896
return GetTotalAuraModifier (auraType, [affectedSpell](AuraEffect const * aurEff) -> bool
4897
4897
{
4898
- if (aurEff->IsAffectedOnSpell (affectedSpell))
4898
+ if (aurEff->IsAffectingSpell (affectedSpell))
4899
4899
return true ;
4900
4900
return false ;
4901
4901
});
@@ -4905,7 +4905,7 @@ float Unit::GetTotalAuraMultiplierByAffectMask(AuraType auraType, SpellInfo cons
4905
4905
{
4906
4906
return GetTotalAuraMultiplier (auraType, [affectedSpell](AuraEffect const * aurEff) -> bool
4907
4907
{
4908
- if (aurEff->IsAffectedOnSpell (affectedSpell))
4908
+ if (aurEff->IsAffectingSpell (affectedSpell))
4909
4909
return true ;
4910
4910
return false ;
4911
4911
});
@@ -4915,7 +4915,7 @@ int32 Unit::GetMaxPositiveAuraModifierByAffectMask(AuraType auraType, SpellInfo
4915
4915
{
4916
4916
return GetMaxPositiveAuraModifier (auraType, [affectedSpell](AuraEffect const * aurEff) -> bool
4917
4917
{
4918
- if (aurEff->IsAffectedOnSpell (affectedSpell))
4918
+ if (aurEff->IsAffectingSpell (affectedSpell))
4919
4919
return true ;
4920
4920
return false ;
4921
4921
});
@@ -4925,7 +4925,7 @@ int32 Unit::GetMaxNegativeAuraModifierByAffectMask(AuraType auraType, SpellInfo
4925
4925
{
4926
4926
return GetMaxNegativeAuraModifier (auraType, [affectedSpell](AuraEffect const * aurEff) -> bool
4927
4927
{
4928
- if (aurEff->IsAffectedOnSpell (affectedSpell))
4928
+ if (aurEff->IsAffectingSpell (affectedSpell))
4929
4929
return true ;
4930
4930
return false ;
4931
4931
});
@@ -6474,7 +6474,7 @@ uint32 Unit::SpellDamageBonusDone(Unit* victim, SpellInfo const* spellProto, uin
6474
6474
Unit const * owner = GetOwner () ? GetOwner () : this ;
6475
6475
DoneTotal += owner->GetTotalAuraModifier (SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, [spellProto](AuraEffect const * aurEff) -> bool
6476
6476
{
6477
- if (!aurEff->IsAffectedOnSpell (spellProto))
6477
+ if (!aurEff->IsAffectingSpell (spellProto))
6478
6478
return false ;
6479
6479
6480
6480
switch (aurEff->GetMiscValue ())
@@ -6646,7 +6646,7 @@ float Unit::SpellDamagePctDone(Unit* victim, SpellInfo const* spellProto, Damage
6646
6646
AuraEffectList const & mOverrideClassScript = owner->GetAuraEffectsByType (SPELL_AURA_OVERRIDE_CLASS_SCRIPTS);
6647
6647
for (AuraEffectList::const_iterator i = mOverrideClassScript .begin (); i != mOverrideClassScript .end (); ++i)
6648
6648
{
6649
- if (!(*i)->IsAffectedOnSpell (spellProto))
6649
+ if (!(*i)->IsAffectingSpell (spellProto))
6650
6650
continue ;
6651
6651
6652
6652
switch ((*i)->GetMiscValue ())
@@ -6955,7 +6955,7 @@ uint32 Unit::SpellDamageBonusTaken(Unit* caster, SpellInfo const* spellProto, ui
6955
6955
{
6956
6956
TakenTotalMod *= GetTotalAuraMultiplier (SPELL_AURA_MOD_DAMAGE_FROM_CASTER, [caster, spellProto](AuraEffect const * aurEff) -> bool
6957
6957
{
6958
- if (aurEff->GetCasterGUID () == caster->GetGUID () && aurEff->IsAffectedOnSpell (spellProto))
6958
+ if (aurEff->GetCasterGUID () == caster->GetGUID () && aurEff->IsAffectingSpell (spellProto))
6959
6959
return true ;
6960
6960
return false ;
6961
6961
});
@@ -7095,7 +7095,7 @@ float Unit::SpellCritChanceTaken(Unit const* caster, SpellInfo const* spellInfo,
7095
7095
AuraEffectList const & mOverrideClassScript = caster->GetAuraEffectsByType (SPELL_AURA_OVERRIDE_CLASS_SCRIPTS);
7096
7096
for (AuraEffect const * aurEff : mOverrideClassScript )
7097
7097
{
7098
- if (!aurEff->IsAffectedOnSpell (spellInfo))
7098
+ if (!aurEff->IsAffectingSpell (spellInfo))
7099
7099
continue ;
7100
7100
7101
7101
float modChance = 0 .f ;
@@ -7243,7 +7243,7 @@ float Unit::SpellCritChanceTaken(Unit const* caster, SpellInfo const* spellInfo,
7243
7243
{
7244
7244
crit_chance += GetTotalAuraModifier (SPELL_AURA_MOD_CRIT_CHANCE_FOR_CASTER, [caster, spellInfo](AuraEffect const * aurEff) -> bool
7245
7245
{
7246
- if (aurEff->GetCasterGUID () == caster->GetGUID () && aurEff->IsAffectedOnSpell (spellInfo))
7246
+ if (aurEff->GetCasterGUID () == caster->GetGUID () && aurEff->IsAffectingSpell (spellInfo))
7247
7247
return true ;
7248
7248
return false ;
7249
7249
});
@@ -7349,7 +7349,7 @@ uint32 Unit::SpellHealingBonusDone(Unit* victim, SpellInfo const* spellProto, ui
7349
7349
AuraEffectList const & mOverrideClassScript = owner->GetAuraEffectsByType (SPELL_AURA_OVERRIDE_CLASS_SCRIPTS);
7350
7350
for (AuraEffect const * aurEff : mOverrideClassScript )
7351
7351
{
7352
- if (!aurEff->IsAffectedOnSpell (spellProto))
7352
+ if (!aurEff->IsAffectingSpell (spellProto))
7353
7353
continue ;
7354
7354
7355
7355
switch (aurEff->GetMiscValue ())
@@ -7502,7 +7502,7 @@ float Unit::SpellHealingPctDone(Unit* victim, SpellInfo const* spellProto) const
7502
7502
AuraEffectList const & mOverrideClassScript = owner->GetAuraEffectsByType (SPELL_AURA_OVERRIDE_CLASS_SCRIPTS);
7503
7503
for (AuraEffect const * aurEff : mOverrideClassScript )
7504
7504
{
7505
- if (!aurEff->IsAffectedOnSpell (spellProto))
7505
+ if (!aurEff->IsAffectingSpell (spellProto))
7506
7506
continue ;
7507
7507
7508
7508
switch (aurEff->GetMiscValue ())
@@ -7591,7 +7591,7 @@ uint32 Unit::SpellHealingBonusTaken(Unit* caster, SpellInfo const* spellProto, u
7591
7591
{
7592
7592
TakenTotalMod *= GetTotalAuraMultiplier (SPELL_AURA_MOD_HEALING_RECEIVED, [caster, spellProto](AuraEffect const * aurEff) -> bool
7593
7593
{
7594
- if (caster->GetGUID () == aurEff->GetCasterGUID () && aurEff->IsAffectedOnSpell (spellProto))
7594
+ if (caster->GetGUID () == aurEff->GetCasterGUID () && aurEff->IsAffectingSpell (spellProto))
7595
7595
return true ;
7596
7596
return false ;
7597
7597
});
@@ -7946,7 +7946,7 @@ uint32 Unit::MeleeDamageBonusDone(Unit* victim, uint32 pdamage, WeaponAttackType
7946
7946
AuraEffectList const & mOverrideClassScript = owner->GetAuraEffectsByType (SPELL_AURA_OVERRIDE_CLASS_SCRIPTS);
7947
7947
for (AuraEffectList::const_iterator i = mOverrideClassScript .begin (); i != mOverrideClassScript .end (); ++i)
7948
7948
{
7949
- if (!(*i)->IsAffectedOnSpell (spellProto))
7949
+ if (!(*i)->IsAffectingSpell (spellProto))
7950
7950
continue ;
7951
7951
7952
7952
switch ((*i)->GetMiscValue ())
@@ -8054,7 +8054,7 @@ uint32 Unit::MeleeDamageBonusTaken(Unit* attacker, uint32 pdamage, WeaponAttackT
8054
8054
// From caster spells
8055
8055
TakenTotalMod *= GetTotalAuraMultiplier (SPELL_AURA_MOD_DAMAGE_FROM_CASTER, [attacker, spellProto](AuraEffect const * aurEff) -> bool
8056
8056
{
8057
- if (aurEff->GetCasterGUID () == attacker->GetGUID () && aurEff->IsAffectedOnSpell (spellProto))
8057
+ if (aurEff->GetCasterGUID () == attacker->GetGUID () && aurEff->IsAffectingSpell (spellProto))
8058
8058
return true ;
8059
8059
return false ;
8060
8060
});
0 commit comments