Core/Players: Fix flight form & fall damage (#16955)

(cherry picked from commit fcbbc60b93)
This commit is contained in:
DDuarte
2016-04-16 18:35:30 +01:00
parent 4e0b0e76c9
commit eaaee4b7c0

View File

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