837 {
840 {
841
844 int32 mana =
int32(std::round(spellEffect + spellPowerBonus));
845
846
847 target->ModifyHealth(-spellEffect);
848
849
851 AddPct(mana, aurEff->GetAmount());
852
854
855
856 int32 manaFeedVal = 0;
858 manaFeedVal = aurEff->GetAmount();
859
860 if (manaFeedVal > 0)
861 {
864 }
865 }
866 }
@ SPELLFAMILY_WARLOCK
Definition SharedDefines.h:3789
@ SPELL_SCHOOL_MASK_SHADOW
Definition SharedDefines.h:290
@ SPELL_AURA_ADD_FLAT_MODIFIER
Definition SpellAuraDefines.h:170
T AddPct(T &base, U pct)
Definition Util.h:58
T ApplyPct(T &base, U pct)
Definition Util.h:64
Definition SpellAuraEffects.h:39
Player * ToPlayer()
Definition Object.h:208
int32 GetEffectValue() const
Definition SpellScript.cpp:605
Unit * GetHitUnit()
Definition SpellScript.cpp:453
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:1435
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition Unit.cpp:5571
int32 SpellBaseDamageBonusDone(SpellSchoolMask schoolMask)
Definition Unit.cpp:8848
AuraEffect * GetDummyAuraEffect(SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
Definition Unit.h:1454
float GetDownrankFactor(Player const *caster)
Definition spell_warlock.cpp:827
@ SPELL_WARLOCK_LIFE_TAP_ENERGIZE_2
Definition spell_warlock.cpp:65
@ SPELL_WARLOCK_LIFE_TAP_ENERGIZE
Definition spell_warlock.cpp:64
@ WARLOCK_ICON_ID_MANA_FEED
Definition spell_warlock.cpp:99
@ WARLOCK_ICON_ID_IMPROVED_LIFE_TAP
Definition spell_warlock.cpp:98