771 {
774 {
777
778
779 target->ModifyHealth(-spellEffect);
780
781
783 AddPct(mana, aurEff->GetAmount());
784
786
787
788 int32 manaFeedVal = 0;
790 manaFeedVal = aurEff->GetAmount();
791
792 if (manaFeedVal > 0)
793 {
796 }
797 }
798 }
T AddPct(T &base, U pct)
Definition: Util.h:67
T ApplyPct(T &base, U pct)
Definition: Util.h:73
@ SPELL_AURA_ADD_FLAT_MODIFIER
Definition: SpellAuraDefines.h:170
@ SPELL_WARLOCK_LIFE_TAP_ENERGIZE_2
Definition: spell_warlock.cpp:60
@ SPELL_WARLOCK_LIFE_TAP_ENERGIZE
Definition: spell_warlock.cpp:59
@ WARLOCK_ICON_ID_MANA_FEED
Definition: spell_warlock.cpp:72
@ WARLOCK_ICON_ID_IMPROVED_LIFE_TAP
Definition: spell_warlock.cpp:71
@ SPELLFAMILY_WARLOCK
Definition: SharedDefines.h:3505
@ SPELL_SCHOOL_MASK_SHADOW
Definition: SharedDefines.h:274
Player * ToPlayer()
Definition: Object.h:195
Definition: Player.h:1046
SpellCastResult CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1226
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition: Unit.cpp:5412
int32 SpellBaseDamageBonusDone(SpellSchoolMask schoolMask)
Definition: Unit.cpp:11855
AuraEffect * GetDummyAuraEffect(SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
Definition: Unit.h:1976
Definition: SpellAuraEffects.h:39
int32 GetEffectValue() const
Definition: SpellScript.cpp:600
Unit * GetHitUnit()
Definition: SpellScript.cpp:448