cyzhao 9 mesi fa
parent
commit
7a1cc789f8
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Gameserver/App/process/HeroProc.php

+ 2 - 2
Gameserver/App/process/HeroProc.php

@@ -164,8 +164,8 @@ class HeroProc {
         if ($heroTypeId != 0) {
         if ($heroTypeId != 0) {
             $dic = ctx()->heros->Dic;
             $dic = ctx()->heros->Dic;
             foreach ($dic as $heroItem) {
             foreach ($dic as $heroItem) {
-                $hero = GameConfig::hero_getItem($heroItem->id);
-                if ($hero->typeID == $heroTypeId) {
+                $hero = GameConfig::hero_getItem($heroItem->Id);
+                if ($hero->typeID == $heroTypeId && $heroItem->isUnlock == 1) {
                     $tag = true;
                     $tag = true;
                     break;
                     break;
                 }
                 }