mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Added Pyromancer Ascension. Stole moomarc's script and added some code to make it shine.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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/pyroclast_consul.txt svneol=native#text/plain
|
||||||
res/cardsfolder/p/pyrohemia.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/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/pyromancers_swath.txt svneol=native#text/plain
|
||||||
res/cardsfolder/p/pyromancy.txt svneol=native#text/plain
|
res/cardsfolder/p/pyromancy.txt svneol=native#text/plain
|
||||||
res/cardsfolder/p/pyromania.txt svneol=native#text/plain
|
res/cardsfolder/p/pyromania.txt svneol=native#text/plain
|
||||||
|
|||||||
14
res/cardsfolder/p/pyromancer_ascension.txt
Normal file
14
res/cardsfolder/p/pyromancer_ascension.txt
Normal 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
|
||||||
@@ -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")) {
|
} else if (property.startsWith("sharesTypeWith")) {
|
||||||
if (!this.sharesTypeWith(source)) {
|
if (!this.sharesTypeWith(source)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user