308 {
312
313
315 AddPct(damage, aurEff->GetAmount());
316
318 AddPct(damage, aurEff->GetAmount());
319
320
321 if (target)
323
325 }
T AddPct(T &base, U pct)
Definition: Util.h:67
std::int32_t int32
Definition: Define.h:103
@ EFFECT_0
Definition: SharedDefines.h:31
int32 CalculateAOEDamageReduction(int32 damage, uint32 schoolMask, Unit *caster) const
Definition: Unit.cpp:20394
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition: Unit.cpp:5494
AuraEffect * GetAuraEffectDummy(uint32 spellid) const
Definition: Unit.cpp:5550
Definition: SpellAuraEffects.h:39
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
void SetHitDamage(int32 damage)
Definition: SpellScript.cpp:524
Unit * GetCaster()
Definition: SpellScript.cpp:401
int32 GetHitDamage()
Definition: SpellScript.cpp:514