fix(fight): 修复空变更提交问题
This commit is contained in:
@@ -88,7 +88,12 @@ func (f *FightC) UseSkill(c common.PlayerI, id int32) {
|
||||
ret := &action.SelectSkillAction{
|
||||
BaseAction: action.NewBaseAction(c.GetInfo().UserID),
|
||||
}
|
||||
|
||||
if f.GetInputByPlayer(c, false).CurrentPet == nil {
|
||||
return
|
||||
}
|
||||
if f.GetInputByPlayer(c, false).CurrentPet.Info.Hp <= 0 {
|
||||
return
|
||||
}
|
||||
for _, v := range f.GetInputByPlayer(c, false).CurrentPet.Skills {
|
||||
|
||||
if v != nil && v.ID == int(id) {
|
||||
|
||||
Reference in New Issue
Block a user