mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Spells: Update Anti-Magic Shell script to include versatility (#29468)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user