修改技能选择实际
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
昔念
2026-02-20 00:46:48 +08:00
parent 1a6870de69
commit 7996e19900
2 changed files with 12 additions and 5 deletions

View File

@@ -91,9 +91,16 @@ func (f *FightC) UseSkill(c common.PlayerI, id uint32) {
if f.GetInputByPlayer(c, false).CurrentPet.Info.Hp <= 0 {
return
}
t, ok := f.GetInputByPlayer(c, false).CurrentPet.Skills[id]
if ok {
ret.SkillEntity = t
// t, ok := f.GetInputByPlayer(c, false).CurrentPet.Skills[id]
// if ok {
// ret.SkillEntity = t
// }
for _, v := range f.GetInputByPlayer(c, false).CurrentPet.Skills {
if v.ID == int(id) {
ret.SkillEntity = v
break
}
}
f.actionChan <- ret