This commit is contained in:
@@ -57,6 +57,12 @@ func (f *FightC) ChangePet(c common.PlayerI, id uint32) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
ii, _ := f.GetInputByPlayer(c, false).GetPet(id)
|
||||
if ii == nil {
|
||||
//无法切换不允许切换的精灵
|
||||
return
|
||||
}
|
||||
//todo 待实现无法切精灵的情况
|
||||
ret := &action.ActiveSwitchAction{
|
||||
BaseAction: action.NewBaseAction(c.GetInfo().UserID),
|
||||
|
||||
Reference in New Issue
Block a user