705 {
708 if (!target)
710
712 {
715
716 if (aurEff->GetAmount() > newAmount)
718 }
719
721 }
@ SPELL_AURA_SCHOOL_ABSORB
Definition: SpellAuraDefines.h:132
static int32 CalculateSpellAmount(Unit *caster, int32 amount, SpellInfo const *spellInfo, const AuraEffect *aurEff)
Definition: spell_priest.cpp:621
@ EFFECT_0
Definition: SharedDefines.h:31
SpellFamilyNames
Definition: SharedDefines.h:3527
@ SPELL_FAILED_AURA_BOUNCED
Definition: SharedDefines.h:958
@ SPELL_FAILED_BAD_TARGETS
Definition: SharedDefines.h:961
@ SPELL_CAST_OK
Definition: SharedDefines.h:1138
std::int32_t int32
Definition: Define.h:103
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition: Unit.cpp:5445
Definition: SpellAuraEffects.h:39
std::array< SpellEffectInfo, MAX_SPELL_EFFECTS > Effects
Definition: SpellInfo.h:393
Unit * GetExplTargetUnit()
Definition: SpellScript.cpp:433
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
Unit * GetCaster()
Definition: SpellScript.cpp:401