This commit is contained in:
1
2026-01-06 15:22:20 +00:00
parent f0d9dfe0e8
commit 69a2d9e510
3 changed files with 42 additions and 26 deletions

View File

@@ -266,10 +266,10 @@ func (our *Input) GetAction() {
our.FightC.UseSkill(our.Player, uint32(bestKillSkill.ID))
return
}
if len(allSkills) <= 0 {
our.FightC.UseSkill(our.Player, 0)
return
}
// if len(allSkills) <= 0 {
// our.FightC.UseSkill(our.Player, 0)
// return
// }
// 优化随机选择技能的逻辑,直接使用随机索引
randomIdx := grand.Intn(len(allSkills))