mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Players: Fix flight form & fall damage (#16955)
(cherry picked from commit fcbbc60b93)
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