瀏覽代碼

宠物bug修复

cyzhao 3 周之前
父節點
當前提交
ee74144a3a
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      Gameserver/App/process/PetProc.php

+ 4 - 2
Gameserver/App/process/PetProc.php

@@ -701,10 +701,12 @@ class PetProc {
                 my_Assert(ctx()->store(true)->petUid_fight_position != $pUid, ErrCode::user_store_NotSelectPet_fight);
                 $supportDic = ctx()->store(true)->petUids_supportFight_position;
                 if(StlUtil::dictHasProperty($supportDic, 1)){
-                    my_Assert($pUid != $supportDic[1], ErrCode::user_store_NotSelectPet_supportfight);
+                    $k1 = 1;
+                    my_Assert($pUid != $supportDic->$k1, ErrCode::user_store_NotSelectPet_supportfight);
                 }
                 if(StlUtil::dictHasProperty($supportDic, 2)){
-                    my_Assert($pUid != $supportDic[2], ErrCode::user_store_NotSelectPet_supportfight);
+                    $k2 = 2;
+                    my_Assert($pUid != $supportDic->$k2, ErrCode::user_store_NotSelectPet_supportfight);
                 }