Browse Source

fixed:装备言灵的时候增加检查.

gwang 4 years ago
parent
commit
fba4992b07
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Gameserver/Amfphp/process/StoreProc.php

+ 2 - 1
Gameserver/Amfphp/process/StoreProc.php

@@ -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;                             # 英雄集合