- [C17] Added Path of Ancestry.

- Fixed Command Tower and Path of Ancestry generating 2 colorless mana in non-EDH matches.
This commit is contained in:
Agetian
2017-08-11 14:14:57 +00:00
parent 6907c9c550
commit b2fc1cc1f2
4 changed files with 25 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -17175,6 +17175,7 @@ forge-gui/res/cardsfolder/upcoming/mathas_fiend_seeker.txt -text
forge-gui/res/cardsfolder/upcoming/mirror_of_the_forebears.txt -text forge-gui/res/cardsfolder/upcoming/mirror_of_the_forebears.txt -text
forge-gui/res/cardsfolder/upcoming/nazahn_revered_bladesmith.txt -text forge-gui/res/cardsfolder/upcoming/nazahn_revered_bladesmith.txt -text
forge-gui/res/cardsfolder/upcoming/new_blood.txt -text forge-gui/res/cardsfolder/upcoming/new_blood.txt -text
forge-gui/res/cardsfolder/upcoming/path_of_ancestry.txt -text
forge-gui/res/cardsfolder/upcoming/patron_of_the_vein.txt -text forge-gui/res/cardsfolder/upcoming/patron_of_the_vein.txt -text
forge-gui/res/cardsfolder/upcoming/qasali_slingers.txt -text forge-gui/res/cardsfolder/upcoming/qasali_slingers.txt -text
forge-gui/res/cardsfolder/upcoming/ramos_dragon_engine.txt -text forge-gui/res/cardsfolder/upcoming/ramos_dragon_engine.txt -text

View File

@@ -94,6 +94,12 @@ public class ManaEffect extends SpellAbilityEffect {
} }
choiceString.append(choice); choiceString.append(choice);
} }
if ("".equals(choiceString.toString()) && "Combo ColorIdentity".equals(abMana.getOrigProduced())) {
// No mana could be produced here (non-EDH match?), so cut short
return;
}
game.action.nofityOfValue(sa, card, activator + " picked " + choiceString, activator); game.action.nofityOfValue(sa, card, activator + " picked " + choiceString, activator);
abMana.setExpressChoice(choiceString.toString()); abMana.setExpressChoice(choiceString.toString());
} }

View File

@@ -4565,6 +4565,14 @@ public class Card extends GameEntity implements Comparable<Card> {
return false; return false;
} }
break; break;
case "Commander":
final List<Card> cmdrs = sourceController.getCommanders();
for (Card cmdr : cmdrs) {
if (sharesCreatureTypeWith(cmdr)) {
return true;
}
}
return false;
case "Enchanted": case "Enchanted":
for (final SpellAbility sa : source.currentState.getNonManaAbilities()) { for (final SpellAbility sa : source.currentState.getNonManaAbilities()) {
final SpellAbility root = sa.getRootAbility(); final SpellAbility root = sa.getRootAbility();

View File

@@ -0,0 +1,9 @@
Name:Path of Ancestry
ManaCost:no cost
Types:Land
K:CARDNAME enters the battlefield tapped.
A:AB$ Mana | Cost$ T | Produced$ Combo ColorIdentity | TriggersWhenSpent$ TrigScry | SpellDescription$ Add to your mana pool one mana of any color in your commander's color identity.
SVar:TrigScry:Mode$ SpellCast | ValidCard$ Creature.sharesCreatureTypeWith Commander | ValidActivatingPlayer$ You | OneOff$ True | Execute$ DBScry | TriggerDescription$ When that mana is spent to cast a creature spell that shares a creature type with your commander, scry 1.
SVar:DBScry:DB$ Scry | ScryNum$ 1
SVar:Picture:http://www.wizards.com/global/images/magic/general/command_tower.jpg
Oracle:Path of Ancestry enters the battlefield tapped.\n{T}: Add to your mana pool one mana of any color in your commander's color identity. When that mana is spent to cast a creature spell that shares a creature type with your commander, scry 1.