Core/Units: always send SendSetPlayHoverAnim

This commit is contained in:
Ovahlord
2019-02-25 05:40:20 +01:00
parent 1f76228c1b
commit c10573f1d0

View File

@@ -14409,15 +14409,12 @@ bool Unit::SetHover(bool enable, bool packetOnly /*= false*/)
}
}
if (GetTypeId() == TYPEID_PLAYER)
{
if (enable)
Movement::PacketSender(this, SMSG_SPLINE_MOVE_SET_HOVER, SMSG_MOVE_SET_HOVER).Send();
else
Movement::PacketSender(this, SMSG_SPLINE_MOVE_UNSET_HOVER, SMSG_MOVE_UNSET_HOVER).Send();
}
if (enable)
Movement::PacketSender(this, SMSG_SPLINE_MOVE_SET_HOVER, SMSG_MOVE_SET_HOVER).Send();
else
SendSetPlayHoverAnim(enable);
Movement::PacketSender(this, SMSG_SPLINE_MOVE_UNSET_HOVER, SMSG_MOVE_UNSET_HOVER).Send();
SendSetPlayHoverAnim(enable);
return true;
}