786 {
789 {
792
793
794 target->ModifyHealth(-spellEffect);
795
796
798 AddPct(mana, aurEff->GetAmount());
799
801
802
803 int32 manaFeedVal = 0;
805 manaFeedVal = aurEff->GetAmount();
806
807 if (manaFeedVal > 0)
808 {
811 }
812 }
813 }
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:73
@ WARLOCK_ICON_ID_IMPROVED_LIFE_TAP
Definition: spell_warlock.cpp:72
@ SPELLFAMILY_WARLOCK
Definition: SharedDefines.h:3533
@ SPELL_SCHOOL_MASK_SHADOW
Definition: SharedDefines.h:302
Player * ToPlayer()
Definition: Object.h:195
Definition: Player.h:1056
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:5432
int32 SpellBaseDamageBonusDone(SpellSchoolMask schoolMask)
Definition: Unit.cpp:11931
AuraEffect * GetDummyAuraEffect(SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
Definition: Unit.h:1990
Definition: SpellAuraEffects.h:39
int32 GetEffectValue() const
Definition: SpellScript.cpp:600
Unit * GetHitUnit()
Definition: SpellScript.cpp:448