Prechádzať zdrojové kódy

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

gwang 4 rokov pred
rodič
commit
fba4992b07
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  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;                             # 英雄集合