mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Commander 2014: Added Teferi, Temporal Archmage
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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()) {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user