- Commander 2014: Added Teferi, Temporal Archmage

This commit is contained in:
swordshine
2014-07-27 11:56:42 +00:00
parent a3acbce645
commit 6cac3199de
3 changed files with 7 additions and 4 deletions

View File

@@ -131,9 +131,8 @@ public enum DeckFormat {
if (null == cmd || cmd.isEmpty()) { if (null == cmd || cmd.isEmpty()) {
return "is missing a commander"; return "is missing a commander";
} }
if (!cmd.get(0).getRules().getType().isLegendary() if (!cmd.get(0).getRules().getOracleText().contains("can be your commander")
|| !cmd.get(0).getRules().getType().isCreature()) { && (!cmd.get(0).getRules().getType().isLegendary() || !cmd.get(0).getRules().getType().isCreature())) {
// TODO: Teferi, Temporal Archmage
return "has a commander that is not a legendary creature"; return "has a commander that is not a legendary creature";
} }

View File

@@ -147,7 +147,6 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
if (params.containsKey("Planeswalker")) { if (params.containsKey("Planeswalker")) {
this.setPlaneswalker(true); this.setPlaneswalker(true);
this.setSorcerySpeed(true);
} }
if (params.containsKey("IsPresent")) { if (params.containsKey("IsPresent")) {
@@ -373,6 +372,10 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
} }
if (this.isPwAbility()) { if (this.isPwAbility()) {
if (!c.hasKeyword("CARDNAME's loyalty abilities can be activated at instant speed.")
&& !activator.canCastSorcery()) {
return false;
}
final int limits = c.getKeywordAmount("May activate CARDNAME's loyalty abilities once"); final int limits = c.getKeywordAmount("May activate CARDNAME's loyalty abilities once");
int numActivates = 0; int numActivates = 0;
for (final SpellAbility pwAbs : c.getAllSpellAbilities()) { for (final SpellAbility pwAbs : c.getAllSpellAbilities()) {

View File

@@ -71,6 +71,7 @@ public final class CEditorCommander extends ACEditorBase<PaperCard, Deck> {
allSections.add(DeckSection.Commander); allSections.add(DeckSection.Commander);
commanderPool = ItemPool.createFrom(FModel.getMagicDb().getCommonCards().getAllCards(Predicates.compose(Predicates.and(CardRulesPredicates.Presets.IS_CREATURE, CardRulesPredicates.Presets.IS_LEGENDARY), PaperCard.FN_GET_RULES)),PaperCard.class); commanderPool = ItemPool.createFrom(FModel.getMagicDb().getCommonCards().getAllCards(Predicates.compose(Predicates.and(CardRulesPredicates.Presets.IS_CREATURE, CardRulesPredicates.Presets.IS_LEGENDARY), PaperCard.FN_GET_RULES)),PaperCard.class);
commanderPool.add(FModel.getMagicDb().getCommonCards().getCard("Teferi, Temporal Archmage"));
normalPool = ItemPool.createFrom(FModel.getMagicDb().getCommonCards().getAllCards(), PaperCard.class); normalPool = ItemPool.createFrom(FModel.getMagicDb().getCommonCards().getAllCards(), PaperCard.class);
CardManager catalogManager = new CardManager(true); CardManager catalogManager = new CardManager(true);