This commit is contained in:
tool4EvEr
2022-04-22 17:08:02 +02:00
parent c314467cbd
commit c932a04204
3 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ public class DiscardEffect extends SpellAbilityEffect {
final String mode = sa.getParam("Mode");
final StringBuilder sb = new StringBuilder();
final Iterable<Player> tgtPlayers = Iterables.filter(getTargetPlayers(sa), PlayerPredicates.canDiscardBy(sa, true));
final Iterable<Player> tgtPlayers = getTargetPlayers(sa).filter(PlayerPredicates.canDiscardBy(sa, true));
if (!Iterables.isEmpty(tgtPlayers)) {
sb.append(Lang.joinHomogenous(tgtPlayers)).append(" ");

View File

@@ -315,7 +315,7 @@ public final class CardUtil {
newCopy.setExiledWith(getLKICopy(in.getExiledWith(), cachedMap));
if (in.getGame().getCombat() != null) {
if (in.getGame().getCombat() != null && in.isPermanent()) {
newCopy.setCombatLKI(in.getGame().getCombat().saveLKI(newCopy));
}

View File

@@ -300,7 +300,7 @@ public class Combat {
return ab;
}
}
CombatLki lki = lkiCache.get(c) != null ? lkiCache.get(c).getCombatLKI() : null;
CombatLki lki = lkiCache.get(c).getCombatLKI();
return lki == null || !lki.isAttacker ? null : lki.getFirstBand();
}
@@ -958,7 +958,7 @@ public class Combat {
return false;
}
CombatLki lki = lkiCache.get(blocker) != null ? lkiCache.get(blocker).getCombatLKI() : null;
CombatLki lki = lkiCache.get(blocker).getCombatLKI();
return null != lki && !lki.isAttacker; // was blocking something anyway
}
@@ -973,7 +973,7 @@ public class Combat {
return false;
}
CombatLki lki = lkiCache.get(blocker) != null ? lkiCache.get(blocker).getCombatLKI() : null;
CombatLki lki = lkiCache.get(blocker).getCombatLKI();
return null != lki && !lki.isAttacker && lki.relatedBands.contains(ab); // was blocking that very band
}