From 44226e4754b0ac8e741f00fdebdf894c599baac5 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sat, 28 Jan 2023 10:57:38 +0100 Subject: [PATCH] =?UTF-8?q?fix(Core/Spells):=20Update=20crit=20chance=20on?= =?UTF-8?q?=20shapeshifting=20to/from=20feral=20f=E2=80=A6=20(#14683)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 955506172..5c8c9399b 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -2103,6 +2103,19 @@ void AuraEffect::HandleAuraModShapeshift(AuraApplication const* aurApp, uint8 mo target->ToPlayer()->_ApplyWeaponDamage(EQUIPMENT_SLOT_MAINHAND, pItem->GetTemplate(), nullptr, apply); } } + + // Update crit chance for feral forms + switch (form) + { + case FORM_CAT: + case FORM_BEAR: + case FORM_DIREBEAR: + case FORM_GHOSTWOLF: + target->ToPlayer()->UpdateAllCritPercentages(); + break; + default: + break; + } } // stop handling the effect if it was removed by linked event