mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Converted keyword "Permanents don't untap during their controllers' untap steps" to a static ablility
- Added Dream Tides, Magnetic Mountain, Mudslide, Thelon's Curse
This commit is contained in:
@@ -1946,8 +1946,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
|
||||
for (int i = 0; i < keywords.size(); i++) {
|
||||
String keyword = keywords.get(i);
|
||||
if (keyword.startsWith("Permanents don't untap during their controllers' untap steps")
|
||||
|| keyword.startsWith("PreventAllDamageBy")
|
||||
if (keyword.startsWith("PreventAllDamageBy")
|
||||
|| keyword.startsWith("CantEquip")
|
||||
|| keyword.startsWith("SpellCantTarget")) {
|
||||
continue;
|
||||
|
||||
@@ -85,21 +85,6 @@ public class Untap extends Phase {
|
||||
|| c.hasKeyword("This card doesn't untap during your next two untap steps.")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (final Card ca : c.getGame().getCardsIn(ZoneType.Battlefield)) {
|
||||
if (ca.hasStartOfKeyword("Permanents don't untap during their controllers' untap steps")) {
|
||||
final int keywordPosition = ca
|
||||
.getKeywordPosition("Permanents don't untap during their controllers' untap steps");
|
||||
final String parse = ca.getKeyword().get(keywordPosition).toString();
|
||||
final String[] k = parse.split(":");
|
||||
final String[] restrictions = k[1].split(",");
|
||||
final Card card = ca;
|
||||
if (c.isValid(restrictions, card.getController(), card)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} // end of Permanents don't untap during their controllers' untap steps
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user