From b54b8c30b133eded2e1858d0650c8cb84e442e31 Mon Sep 17 00:00:00 2001 From: UnKownOwO <80520429@qq.com> Date: Mon, 19 Dec 2022 16:31:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=A8=E5=9B=B4=E6=9C=89=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E6=B8=B8=E6=B3=B3=E6=B6=88=E8=80=97=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gs/game/user_fight_sync.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gs/game/user_fight_sync.go b/gs/game/user_fight_sync.go index 99fffdf6..52acce14 100644 --- a/gs/game/user_fight_sync.go +++ b/gs/game/user_fight_sync.go @@ -119,6 +119,9 @@ func (g *GameManager) CombatInvocationsNotify(player *model.Player, payloadMsg p player.Rot.X = float64(motionInfo.Rot.X) player.Rot.Y = float64(motionInfo.Rot.Y) player.Rot.Z = float64(motionInfo.Rot.Z) + + // 处理耐力消耗 + g.ImmediateStamina(player, motionInfo.State) } else { // 非玩家实体在移动 更新场景实体的位置信息 sceneEntity.pos = &model.Vector{ @@ -136,9 +139,6 @@ func (g *GameManager) CombatInvocationsNotify(player *model.Player, payloadMsg p sceneEntity.lastMoveSceneTimeMs = entityMoveInfo.SceneTime sceneEntity.lastMoveReliableSeq = entityMoveInfo.ReliableSeq - // 处理耐力消耗 - g.ImmediateStamina(player, motionInfo.State) - player.CombatInvokeHandler.AddEntry(entry.ForwardType, entry) case proto.CombatTypeArgument_COMBAT_TYPE_ARGUMENT_ANIMATOR_STATE_CHANGED: evtAnimatorStateChangedInfo := new(proto.EvtAnimatorStateChangedInfo)