diff --git a/logic/service/fight/loop.go b/logic/service/fight/loop.go index d09bc0fad..dec32f7d2 100644 --- a/logic/service/fight/loop.go +++ b/logic/service/fight/loop.go @@ -173,12 +173,12 @@ func (f *FightC) collectPlayerActions(ourID, oppID uint32) map[uint32]action.Bat if selfinput.CanChange == 2 { selfinput.CanChange = 0 - // if f.Info.Status == info.BattleMode.FIGHT_WITH_NPC && pid == 0 { - // f.Switch = make(map[uint32]*action.ActiveSwitchAction) - // f.Our.Player.SendPackCmd(2407, &ret.Reason) - // f.Opp.GetAction() - // println("开始执行NPC死切动作") - // } + if f.Info.Status == info.BattleMode.FIGHT_WITH_NPC && pid == 0 { + f.Switch = make(map[uint32]*action.ActiveSwitchAction) + f.Our.Player.SendPackCmd(2407, &ret.Reason) + // f.Opp.GetAction() + println("开始执行NPC死切动作") + } continue } }