Ver código fonte

升级bug修复

cyzhao 4 anos atrás
pai
commit
9e8fcce6e4
1 arquivos alterados com 1 adições e 1 exclusões
  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;
             }