fix(Core/Spells): Update crit chance on shapeshifting to/from feral f… (#14683)

This commit is contained in:
UltraNix
2023-01-28 10:57:38 +01:00
committed by GitHub
parent 4744f561bf
commit 44226e4754

View File

@@ -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