Core/Movement: Knockback Effect on Flying Mount

by @robinsch; closes #6099

Keep the mounted player flying after the knockback effect cast on mounted player.

Before these changes, the flying mount behaves like a ground mount after the knockback.
From large enough heights, the fall causes damage or death to the falling (mounted) character.
This commit is contained in:
robinsch authored and tkrokli committed 2015-06-02 04:26:40 +02:00
1 parent 833a0d2ea5
commit 81111116fa
6 files changed
+11 -8

No files matched your search

+2 -2
View File
@@ -26251,9 +26251,9 @@ bool Player::SetDisableGravity(bool disable, bool packetOnly /*= false*/)
return true;
}
bool Player::SetCanFly(bool apply)
bool Player::SetCanFly(bool apply, bool packetOnly /*= false*/)
{
if (!Unit::SetCanFly(apply))
if (!packetOnly && !Unit::SetCanFly(apply))
return false;
WorldPacket data(apply ? SMSG_MOVE_SET_CAN_FLY : SMSG_MOVE_UNSET_CAN_FLY, 12);