912 {
915 {
918
919
920 target->ModifyHealth(-spellEffect);
921
922
924 AddPct(mana, aurEff->GetAmount());
925
927
928
929 int32 manaFeedVal = 0;
931 manaFeedVal = aurEff->GetAmount();
932
933 if (manaFeedVal > 0)
934 {
937 }
938 }
939 }
T AddPct(T &base, U pct)
Definition: Util.h:67
T ApplyPct(T &base, U pct)
Definition: Util.h:73
@ 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:80
@ WARLOCK_ICON_ID_IMPROVED_LIFE_TAP
Definition: spell_warlock.cpp:79
@ SPELLFAMILY_WARLOCK
Definition: SharedDefines.h:3533
@ SPELL_SCHOOL_MASK_SHADOW
Definition: SharedDefines.h:302
@ SPELL_AURA_ADD_FLAT_MODIFIER
Definition: SpellAuraDefines.h:170
Player * ToPlayer()
Definition: Object.h:201
Definition: Player.h:1081
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:1224
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition: Unit.cpp:5494
int32 SpellBaseDamageBonusDone(SpellSchoolMask schoolMask)
Definition: Unit.cpp:11937
AuraEffect * GetDummyAuraEffect(SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
Definition: Unit.h:1358
Definition: SpellAuraEffects.h:39
int32 GetEffectValue() const
Definition: SpellScript.cpp:600
Unit * GetHitUnit()
Definition: SpellScript.cpp:448