神将回退卸下魂印bug

back_recharge
jiahuiwen 2021-12-27 16:55:11 +08:00
parent 6faac1d034
commit 7ebd8878de
1 changed files with 8 additions and 3 deletions

View File

@ -4072,9 +4072,14 @@ public class HeroLogic {
Map<Integer, Integer> hunying = null; Map<Integer, Integer> hunying = null;
if (!soulEquipByPositionMap.isEmpty()) { if (!soulEquipByPositionMap.isEmpty()) {
hunying = new HashMap<>(soulEquipByPositionMap.size()); hunying = new HashMap<>(soulEquipByPositionMap.size());
} Set<Integer> unload = new HashSet<>(soulEquipByPositionMap.size());
for (Integer value : soulEquipByPositionMap.values()) { for (Map.Entry<Integer, Integer> entry : soulEquipByPositionMap.entrySet()) {
hunying.put(value, 1); hunying.put(entry.getValue(), 1);
unload.add(entry.getKey());
}
for (Integer integer : unload) {
hero.removeSoulEquip(integer);
}
} }
for (int[] ints : returnPercent) { for (int[] ints : returnPercent) {
for (int i = 1; i < ints.length; i++) { for (int i = 1; i < ints.length; i++) {