Core/Units: always send SendSetPlayHoverAnim
This commit is contained in:
1 parent
1f76228c1b
commit
c10573f1d0
1 file changed
+5
-8
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user