654 {
656
658
659 if (!damageInfo || !damageInfo->
GetDamage())
660 {
661 return;
662 }
663
664
667 }
T CalculatePct(T base, U pct)
Definition: Util.h:61
std::int32_t int32
Definition: Define.h:103
@ SPELLVALUE_BASE_POINT0
Definition: SpellDefines.h:114
@ SPELL_PALADIN_EYE_FOR_AN_EYE_DAMAGE
Definition: spell_paladin.cpp:50
uint32 GetDamage() const
Definition: Unit.h:364
DamageInfo * GetDamageInfo() const
Definition: Unit.h:449
Unit * GetProcTarget() const
Definition: Unit.h:441
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:1225
void PreventDefaultAction()
Definition: SpellScript.cpp:985
Unit * GetTarget() const
Definition: SpellScript.cpp:1165