Core/Spells: Assign spell effect handles for new apply aura effects

This commit is contained in:
Shauren
2020-06-22 11:04:57 +02:00
parent 01d098830a
commit c3dcbe04dc
5 changed files with 18 additions and 14 deletions

View File

@@ -438,7 +438,8 @@ bool SpellEffectInfo::IsAreaAuraEffect() const
Effect == SPELL_EFFECT_APPLY_AREA_AURA_FRIEND ||
Effect == SPELL_EFFECT_APPLY_AREA_AURA_ENEMY ||
Effect == SPELL_EFFECT_APPLY_AREA_AURA_PET ||
Effect == SPELL_EFFECT_APPLY_AREA_AURA_OWNER)
Effect == SPELL_EFFECT_APPLY_AREA_AURA_OWNER ||
Effect == SPELL_EFFECT_APPLY_AREA_AURA_PARTY_NONRANDOM)
return true;
return false;
}
@@ -457,7 +458,7 @@ bool SpellEffectInfo::IsFarDestTargetEffect() const
bool SpellEffectInfo::IsUnitOwnedAuraEffect() const
{
return IsAreaAuraEffect() || Effect == SPELL_EFFECT_APPLY_AURA;
return IsAreaAuraEffect() || Effect == SPELL_EFFECT_APPLY_AURA || Effect == SPELL_EFFECT_APPLY_AURA_ON_PET || Effect == SPELL_EFFECT_202;
}
int32 SpellEffectInfo::CalcValue(Unit const* caster /*= nullptr*/, int32 const* bp /*= nullptr*/, Unit const* target /*= nullptr*/, float* variance /*= nullptr*/, uint32 castItemId /*= 0*/, int32 itemLevel /*= -1*/) const