fix: 修复空提交问题

This commit is contained in:
1
2025-11-23 23:42:16 +00:00
parent 240c349b8a
commit 2723b1871d
4 changed files with 8 additions and 11 deletions

View File

@@ -254,7 +254,7 @@ func (our *Input) GetAction(opp *Input) {
// bestKillSkill = ks.skill
// }
// }
our.FightC.UseSkill(our.Player, int32(bestKillSkill.ID))
our.FightC.UseSkill(our.Player, uint32(bestKillSkill.ID))
return
}
if len(allSkills) <= 0 {
@@ -265,7 +265,7 @@ func (our *Input) GetAction(opp *Input) {
randomIdx := grand.Intn(len(allSkills))
for i, v := range skills {
if randomIdx == int(i) {
our.FightC.UseSkill(our.Player, int32(v.ID))
our.FightC.UseSkill(our.Player, uint32(v.ID))
}
}