浏览代码

升级bug修复

cyzhao 4 年之前
父节点
当前提交
9e8fcce6e4
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
             }