- 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:
swordshine
2014-03-10 00:32:54 +00:00
parent 891b1fa2fd
commit a4be2a944d
22 changed files with 77 additions and 47 deletions

View File

@@ -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;

View File

@@ -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;
}