修复潜能升级越界的问题

master_yuenan
DESKTOP-C3M45P4\dengdan 2025-04-09 15:05:52 +08:00
parent debeb8fad7
commit fea7604c51
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 && config.getConsume().length > 0) {
int itemId = config.getConsume()[0][0];
int num = config.getConsume()[0][1];
Item item = user.getItemManager().getItem(itemId);