关卡限制脚本优化

back_recharge
yuanshuai 2021-12-13 14:55:23 +08:00
parent 312ad1cd58
commit ce6b4d239b
1 changed files with 3 additions and 0 deletions

View File

@ -2200,6 +2200,9 @@ public class MapLogic {
for (Map.Entry<String, Hero> stringHeroEntry : user.getHeroManager().getHeroMap().entrySet()) {
if (stringHeroEntry.getValue().getOriginalLevel()>= ints[1]) {
num++;
if (num >= ints[2]) {
break;
}
}
}
if (num < ints[2]) {