diff options
author | Aqua Deus <95978183+aquadeus@users.noreply.github.com> | 2023-11-29 23:09:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 23:09:12 +0100 |
commit | e90fee78df874bf1e28d7879dff3547cbd466ceb (patch) | |
tree | 65545383cc330129cd0ef4d04b709c18bed7f62c | |
parent | 23a2a1123374f30f878ec7c071e5e2c55e47025b (diff) |
Scripts/Spells: Update Anti-Magic Shell script to include versatility (#29468)
-rw-r--r-- | src/server/scripts/Spells/spell_dk.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index c37de92d958..ddd1b2117fd 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -141,6 +141,9 @@ public: void CalculateAmount(AuraEffect const* /*aurEff*/, int32& amount, bool& /*canBeRecalculated*/) { amount = CalculatePct(maxHealth, absorbPct); + + if (Player const* player = GetUnitOwner()->ToPlayer()) + AddPct(amount, player->GetRatingBonusValue(CR_VERSATILITY_DAMAGE_DONE) + player->GetTotalAuraModifier(SPELL_AURA_MOD_VERSATILITY)); } void Trigger(AuraEffect* aurEff, DamageInfo& /*dmgInfo*/, uint32& absorbAmount) |