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