1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-07 00:18:14 +08:00
parent 637a49e274
commit 3947fbce4b
14 changed files with 61 additions and 44 deletions

View File

@@ -161,10 +161,10 @@ func (f *FightC) collectPlayerActions(ourID, oppID uint32) map[uint32]action.Bat
if pid != ourID && pid != oppID {
continue
}
if f.Info.Status == info.BattleMode.FIGHT_WITH_NPC && pid != 0 {
f.Opp.GetAction()
// if f.Info.Status == info.BattleMode.FIGHT_WITH_NPC && pid != 0 {
// f.Opp.GetAction()
}
// }
selfinput := f.GetInputByAction(paction, false)
if ret, ok := paction.(*action.ActiveSwitchAction); ok {
//正常结束可以切换,以及死切后还能再切一次
@@ -211,6 +211,8 @@ func (f *FightC) collectPlayerActions(ourID, oppID uint32) map[uint32]action.Bat
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)
println("AI出手死切")
go f.Our.GetAction() //boss出手后获取出招
}
continue