mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core/Spells: Assign spell effect handles for new apply aura effects
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user