update (core): Additional anticheat helper (#12692)

update (core): Addition anticheat helper
This commit is contained in:
M'Dic
2022-08-09 14:27:09 -04:00
committed by GitHub
parent e476533e6e
commit 5fe01e2d19

View File

@@ -1913,6 +1913,10 @@ void AuraEffect::HandleAuraModShapeshift(AuraApplication const* aurApp, uint8 mo
case FORM_FLIGHT:
case FORM_MOONKIN:
{
if (Player* player = target->ToPlayer())
{
player->SetCanTeleport(true);
}
// remove movement affects
target->RemoveAurasByShapeShift();