修复潜能满级越界问题

master_yuenan
DESKTOP-C3M45P4\dengdan 2025-04-09 15:01:43 +08:00
parent 5aa7a6b46e
commit debeb8fad7
1 changed files with 1 additions and 1 deletions

View File

@ -7185,7 +7185,7 @@ public class HeroLogic {
hero.putPotentialLv(type, targetLv);
//推送礼包,判断下级材料是走足够,因为道具需求数量不确定,在该处判断逻辑是否推送,推送了礼包直接就弹
SPotentialNew config = lvMap.get(targetLv);
if (config != null || config.getConsume() != null) {
if (config != null && config.getConsume() != null) {
int itemId = config.getConsume()[0][0];
int num = config.getConsume()[0][1];
Item item = user.getItemManager().getItem(itemId);