mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Clean up
This commit is contained in:
@@ -35,7 +35,7 @@ public class DiscardEffect extends SpellAbilityEffect {
|
|||||||
final String mode = sa.getParam("Mode");
|
final String mode = sa.getParam("Mode");
|
||||||
final StringBuilder sb = new StringBuilder();
|
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)) {
|
if (!Iterables.isEmpty(tgtPlayers)) {
|
||||||
sb.append(Lang.joinHomogenous(tgtPlayers)).append(" ");
|
sb.append(Lang.joinHomogenous(tgtPlayers)).append(" ");
|
||||||
|
|||||||
@@ -315,7 +315,7 @@ public final class CardUtil {
|
|||||||
|
|
||||||
newCopy.setExiledWith(getLKICopy(in.getExiledWith(), cachedMap));
|
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));
|
newCopy.setCombatLKI(in.getGame().getCombat().saveLKI(newCopy));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ public class Combat {
|
|||||||
return ab;
|
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();
|
return lki == null || !lki.isAttacker ? null : lki.getFirstBand();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -958,7 +958,7 @@ public class Combat {
|
|||||||
return false;
|
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
|
return null != lki && !lki.isAttacker; // was blocking something anyway
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -973,7 +973,7 @@ public class Combat {
|
|||||||
return false;
|
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
|
return null != lki && !lki.isAttacker && lki.relatedBands.contains(ab); // was blocking that very band
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user