修复大乱斗问题
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-20 09:40:22 +08:00
parent 58440d5993
commit 53b18cfd0c
6 changed files with 37 additions and 17 deletions

View File

@@ -8,6 +8,7 @@ import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/player"
"blazing/modules/config/service"
"math/rand"
"time"
)
@@ -31,6 +32,9 @@ func NewFight(p1, p2 common.PlayerI, fn func(info.FightOverInfo)) (*FightC, erro
//这里应该挪到玩家初始化执行
f.ReadyInfo.Status = f.Info.Status
if f.Info.Mode == info.BattleMode.PET_MELEE {
f.Melee = service.NewMELEEService().Def()
}
var err errorcode.ErrorCode
f.Our, err = f.initplayer(p1)
if err > 0 {