feat(Core/Spells): add helper to get clean and unmitigated damage for pro… (#7244)
This commit is contained in:
parent
5af98783c9
commit
3223f90bcb
12 changed files with 283 additions and 169 deletions
|
|
@ -146,9 +146,7 @@ public:
|
|||
Unit* procTarget = ObjectAccessor::GetUnit(*GetTarget(), _procTargetGUID);
|
||||
if (procTarget && eventInfo.GetDamageInfo())
|
||||
{
|
||||
int32 damage = eventInfo.GetDamageInfo()->GetDamage();
|
||||
// Xinef: Include AOE Damage Reduction auras
|
||||
damage = procTarget->CalculateAOEDamageReduction(damage, SPELL_SCHOOL_MASK_NORMAL, GetTarget());
|
||||
int32 damage = eventInfo.GetDamageInfo()->GetUnmitigatedDamage();
|
||||
|
||||
CustomSpellValues values;
|
||||
values.AddSpellMod(SPELLVALUE_BASE_POINT0, damage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue