Fix Scapeshift returning Lake of the Dead + Swamp which it can sacrifice (#5300)

This commit is contained in:
tool4ever
2024-05-26 16:06:52 +02:00
committed by GitHub
parent 610697b744
commit 7a56873f97

View File

@@ -107,7 +107,9 @@ public class SacrificeEffect extends SpellAbilityEffect {
} else {
CardCollectionView choosenToSacrifice = null;
for (final Player p : getTargetPlayers(sa)) {
CardCollectionView battlefield = p.getCardsIn(ZoneType.Battlefield);
CardCollection battlefield = new CardCollection(p.getCardsIn(ZoneType.Battlefield));
battlefield.removeIf(c -> !zoneMovements.getLastStateBattlefield().contains(c));
if (sacEachValid) { // Sacrifice maximum permanents in any combination of types specified by SacValid
String [] validArray = valid.split(" & ");
String [] msgArray = msg.split(" & ");