Core/Players: Fix flight form & fall damage (#16955)
(cherry picked from commit fcbbc60b93625211d958431461345fede9dcbe46)
This commit is contained in:
@@ -15991,6 +15991,8 @@ bool Unit::SetCanFly(bool enable)
|
||||
};
|
||||
|
||||
bool player = GetTypeId() == TYPEID_PLAYER && ToPlayer()->m_mover->GetTypeId() == TYPEID_PLAYER;
|
||||
if (!enable && player)
|
||||
ToPlayer()->SetFallInformation(0, GetPositionZ());
|
||||
|
||||
if (player)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user