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

This commit is contained in:
昔念
2026-02-05 23:44:07 +08:00
parent 30c89dcd2a
commit a0d4567d3f
10 changed files with 110 additions and 47 deletions

View File

@@ -57,6 +57,12 @@ func (f *FightC) ChangePet(c common.PlayerI, id uint32) {
return
}
ii, _ := f.GetInputByPlayer(c, false).GetPet(id)
if ii == nil {
//无法切换不允许切换的精灵
return
}
//todo 待实现无法切精灵的情况
ret := &action.ActiveSwitchAction{
BaseAction: action.NewBaseAction(c.GetInfo().UserID),