fix: 修复空提交问题
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user