From bb94e531e8785138adabdd4999a960c8dfccca65 Mon Sep 17 00:00:00 2001 From: duhui Date: Thu, 2 Sep 2021 11:39:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=B8=BF=E8=92=99=E9=98=B5bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ljsd/jieling/logic/hero/HeroLogic.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java index 0c7c638d0..b0d00e959 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java @@ -4326,7 +4326,7 @@ public class HeroLogic{ List heroes = new ArrayList<>(values); // 是否开启鸿蒙碑 - int tabletMax = 1; + int tabletMax = 0; // 是否为鸿蒙碑 if (heroManager.getHongmengTablet() > 0){ // 等级 @@ -4349,8 +4349,8 @@ public class HeroLogic{ } }); // 是否开启鸿蒙碑 - if (hero.getOriginalLevel() < Integer.parseInt(openLevel[1])) { - tabletMax = 0; + if (hero.getOriginalLevel() >= Integer.parseInt(openLevel[1])) { + tabletMax++; } // 等级 hongmengLevel(resonanceLevel, hero); @@ -4364,7 +4364,7 @@ public class HeroLogic{ heroManager.setHongmengGuards(hongmengs); // 鸿蒙碑,觉醒限制 - if (tabletMax == 1 && heroManager.getHongmengTablet() == 0) { + if (tabletMax >= Integer.parseInt(openLevel[0]) && heroManager.getHongmengTablet() == 0) { // 开启鸿蒙碑 heroManager.setHongmengTablet(Integer.parseInt(openLevel[1])); for (String resetLevelId : heroManager.getHongmengGuards().values()) {