神印合成bug修改
parent
5bb162590f
commit
25b4abd436
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 卸下的神印需要放回物品背包
|
// 卸下的神印需要放回物品背包
|
||||||
|
|
Loading…
Reference in New Issue