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