- Added Pyromancer Ascension. Stole moomarc's script and added some code to make it shine.

This commit is contained in:
jeffwadsworth
2012-02-10 19:32:37 +00:00
parent b518ce2ed6
commit 519d02528b
3 changed files with 32 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -6720,6 +6720,7 @@ res/cardsfolder/p/pyroclasm.txt svneol=native#text/plain
res/cardsfolder/p/pyroclast_consul.txt svneol=native#text/plain
res/cardsfolder/p/pyrohemia.txt svneol=native#text/plain
res/cardsfolder/p/pyrokinesis.txt svneol=native#text/plain
res/cardsfolder/p/pyromancer_ascension.txt -text svneol=unset#text/plain
res/cardsfolder/p/pyromancers_swath.txt svneol=native#text/plain
res/cardsfolder/p/pyromancy.txt svneol=native#text/plain
res/cardsfolder/p/pyromania.txt svneol=native#text/plain

View File

@@ -0,0 +1,14 @@
Name:Pyromancer Ascension
ManaCost:1 R
Types:Enchantment
Text:no text
T:Mode$ SpellCast | ValidCard$ Card.Instant,Card.Sorcery | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigPutCounter | OptionalDecider$ You | TriggerDescription$ Whenever you cast an instant or sorcery spell that has the same name as a card in your graveyard, you may put a quest counter on CARDNAME.
T:Mode$ SpellCast | ValidCard$ Card.Instant,Card.Sorcery | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | IsPresent$ Card.Self+counters_GE2_QUEST | Execute$ TrigCopySpell | OptionalDecider$ You | TriggerDescription$ Whenever you cast an instant or sorcery spell while CARDNAME has two or more quest counters on it, you may copy that spell. You may choose new targets for the copy.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ QUEST | CounterNum$ 1 | ConditionDefined$ TriggeredCard | ConditionPresent$ Card.sharesNameWith YourGraveyard | ConditionCompare$ GE1
SVar:TrigCopySpell:AB$CopySpell | Cost$ 0 | Defined$ TriggeredSpellAbility
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/pyromancer_ascension.jpg
SetInfo:ZEN|Rare|http://magiccards.info/scans/en/zen/143.jpg
Oracle:Whenever you cast an instant or sorcery spell that has the same name as a card in your graveyard, you may put a quest counter on Pyromancer Ascension.\nWhenever you cast an instant or sorcery spell while Pyromancer Ascension has two or more quest counters on it, you may copy that spell. You may choose new targets for the copy.
End

View File

@@ -6838,6 +6838,23 @@ public class Card extends GameEntity implements Comparable<Card> {
}
}
}
} else if (property.startsWith("sharesNameWith")) {
final String restriction = property.split("sharesNameWith ")[1];
if (restriction.equals("YourGraveyard")) {
final CardList list = sourceController.getCardsIn(Zone.Graveyard);
if (list.isEmpty()) {
return false;
}
boolean shares = false;
for (final Card card : sourceController.getCardsIn(Constant.Zone.Graveyard)) {
if (this.getName().equals(card.getName())) {
shares = true;
}
}
if (!shares) {
return false;
}
}
} else if (property.startsWith("sharesTypeWith")) {
if (!this.sharesTypeWith(source)) {
return false;