神印合成bug修改

back_recharge
duhui 2022-04-29 15:50:16 +08:00
parent 5bb162590f
commit 25b4abd436
1 changed files with 7 additions and 7 deletions

View File

@ -6344,7 +6344,7 @@ public class HeroLogic {
/** /**
* *
* @param iSession * @param iSession
* @param ItemId * @param ItemId id
* @param heroId * @param heroId
* @return * @return
* @throws Exception * @throws Exception
@ -6369,15 +6369,15 @@ public class HeroLogic {
// hero信息 // hero信息
hero = user.getHeroManager().getHero(heroId); hero = user.getHeroManager().getHero(heroId);
// hero godseal 信息 // hero godseal 信息
Map<Integer, Integer> godSealByPositionMap = hero.getGodSealByPositionMap(); HashMap<Integer, Integer> map = new HashMap<>(hero.getGodSealByPositionMap());
for (Map.Entry<Integer, Integer> entry : godSealByPositionMap.entrySet()) { for (Map.Entry<Integer, Integer> next : map.entrySet()) {
if (entry.getValue() == ItemId){ if (next.getValue() == ItemId){
// 删除英雄身上的神印信息 // 删除英雄身上的神印信息
hero.removeGodSeal(entry.getKey()); hero.removeGodSeal(next.getKey());
// 入背包 // 入背包
list.add(new int[][]{{entry.getValue(),1}}); list.add(new int[][]{{next.getValue(),1}});
// 记录神印位置 // 记录神印位置
position = entry.getKey(); position = next.getKey();
} }
} }
// 卸下的神印需要放回物品背包 // 卸下的神印需要放回物品背包