mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/Spells): Update crit chance on shapeshifting to/from feral f… (#14683)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user