cyzhao 4 năm trước cách đây
mục cha
commit
6120f8430f
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      Gameserver/Amfphp/process/HeroProc.php

+ 2 - 4
Gameserver/Amfphp/process/HeroProc.php

@@ -1007,12 +1007,10 @@ class HeroProc {
         $store->yanling->$yanlingUid->curStarExp += $exp;
         $dic = GameConfig::item_yanling_getItem($store->yanling->$yanlingUid->typeId);
 
-        if ($store->yanling->$yanlingUid->curStarExp >= $dic->maxStarExp) {
+        if ($store->yanling->$yanlingUid->curStarExp >= $dic->maxStarExp) {           
             $store->yanling->$yanlingUid->curStarExp = 0;
             $store->yanling->$yanlingUid->starLv += 1;
-            if($dic->nextId == 0){
-                $store->yanling->$yanlingUid->starLv = 5;
-            }
+            $store->yanling->$yanlingUid->typeId = $dic->nextId;          
         }
 
         $req->userInfo->game->store = $store;