aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAqua Deus <95978183+aquadeus@users.noreply.github.com>2023-11-29 23:09:12 +0100
committerGitHub <noreply@github.com>2023-11-29 23:09:12 +0100
commite90fee78df874bf1e28d7879dff3547cbd466ceb (patch)
tree65545383cc330129cd0ef4d04b709c18bed7f62c /src
parent23a2a1123374f30f878ec7c071e5e2c55e47025b (diff)
Scripts/Spells: Update Anti-Magic Shell script to include versatility (#29468)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_dk.cpp3
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)