mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed "CARDNAME untaps during each other player's untap step." working on your own untap step.
This commit is contained in:
@@ -193,11 +193,11 @@ public class Untap extends Phase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// other players untapping during your untap phase
|
// other players untapping during your untap phase
|
||||||
final List<Card> cardsWithKW = CardLists.getKeyword(game.getCardsIn(ZoneType.Battlefield),
|
List<Card> cardsWithKW = CardLists.getKeyword(game.getCardsIn(ZoneType.Battlefield),
|
||||||
"CARDNAME untaps during each other player's untap step.");
|
"CARDNAME untaps during each other player's untap step.");
|
||||||
final List<Player> otherPlayers = player.getOpponents();
|
final List<Player> otherPlayers = new ArrayList<Player>(game.getPlayers());
|
||||||
otherPlayers.addAll(player.getAllies());
|
otherPlayers.remove(player);
|
||||||
CardLists.filter(cardsWithKW, CardPredicates.isControlledByAnyOf(otherPlayers));
|
cardsWithKW = CardLists.filter(cardsWithKW, CardPredicates.isControlledByAnyOf(otherPlayers));
|
||||||
for (final Card cardWithKW : cardsWithKW) {
|
for (final Card cardWithKW : cardsWithKW) {
|
||||||
cardWithKW.untap();
|
cardWithKW.untap();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user