|
@@ -499,7 +499,8 @@ class StoreProc {
|
|
|
Err(ErrCode::store_itemno_err);
|
|
|
}
|
|
|
$yanlingVo = $user->store->yanling->$yanling_uid; # 取言灵对象
|
|
|
- if (isset($yanlingVo->herouid) && $yanlingVo->herouid != $herouid) { # 检测该言灵是否装备到其他英雄身上
|
|
|
+ if (isset($yanlingVo->herouid) && $yanlingVo->herouid > 0 #
|
|
|
+ && $yanlingVo->herouid != $herouid) { # 检测该言灵是否装备到其他英雄身上
|
|
|
Err(ErrCode::store_equipWeared_err);
|
|
|
}
|
|
|
$collectHeros = $user->heros->collectHeros; # 英雄集合
|