Pārlūkot izejas kodu

升级bug修复

cyzhao 4 gadi atpakaļ
vecāks
revīzija
9e8fcce6e4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Gameserver/Amfphp/process/HeroProc.php

+ 1 - 1
Gameserver/Amfphp/process/HeroProc.php

@@ -620,7 +620,7 @@ class HeroProc {
         $curStar = $targetHero->curStar;#当前星级   
         if($curStar < 5){
             $starlimitLv = GameConfig::heroextra_level_tupo_getItem($targetHero->typeId, $curStar +1)->starlimitLv; 
-            if($starlimitLv > $curLv){
+            if($starlimitLv < $curLv){
                 $targetHero->level = $starlimitLv;
                 $targetHero->xp = GameConfig::hero_levelexp_getItem($starlimitLv)->needExp;
             }