forked from External/mage
[OTJ] Implement Plot mechanic (+8 cards) (#12017)
[OTJ] Implement Aloe Alchemist [OTJ] Implement Aven Interrupter [OTJ] Implement Longhorn Shapshooter [OTJ] Implement Kellan Joins Up [OTJ] Implement Make Your Own Luck [OTJ] Implement Jace Reawakened [OTJ] Implement Lilah, Undefeated Slickshot [OTJ] Implement Doc Aurlock, Grizzled Genius
This commit is contained in:
parent
ed3d6e3078
commit
97ab8074b3
19 changed files with 1476 additions and 25 deletions
|
|
@ -1323,7 +1323,7 @@ public final class CardUtil {
|
|||
* such as the adventure and main side of adventure spells or both sides of a fuse card.
|
||||
*
|
||||
* @param cardToCast
|
||||
* @param filter A filter to determine if a card is eligible for casting.
|
||||
* @param filter An optional filter to determine if a card is eligible for casting.
|
||||
* @param source The ability or source responsible for the casting.
|
||||
* @param player
|
||||
* @param game
|
||||
|
|
@ -1347,7 +1347,9 @@ public final class CardUtil {
|
|||
if (!playLand || !player.canPlayLand() || !game.isActivePlayer(playerId)) {
|
||||
cards.removeIf(card -> card.isLand(game));
|
||||
}
|
||||
cards.removeIf(card -> !filter.match(card, playerId, source, game));
|
||||
if (filter != null) {
|
||||
cards.removeIf(card -> !filter.match(card, playerId, source, game));
|
||||
}
|
||||
if (spellCastTracker != null) {
|
||||
cards.removeIf(card -> !spellCastTracker.checkCard(card, game));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue