This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user