mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
add Volition Reins (from Scars of Mirrodin)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -6006,6 +6006,7 @@ res/cardsfolder/volcanic_spray.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/volcanic_strength.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/volcanic_submersion.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/volcano_imp.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/volition_reins.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/volraths_dungeon.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/volraths_gardens.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/volraths_stronghold.txt -text svneol=native#text/plain
|
||||
|
||||
11
res/cardsfolder/volition_reins.txt
Normal file
11
res/cardsfolder/volition_reins.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
Name:Volition Reins
|
||||
ManaCost:3 U U U
|
||||
Types:Enchantment Aura
|
||||
Text:You control enchanted permanent.
|
||||
K:Enchant permanent
|
||||
# This trigger does not work. Yet.
|
||||
#T:Mode$ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigUntap | TriggerDescription$ When CARDNAME enters the battlefield, if enchanted permanent is tapped, untap it.
|
||||
#SVar:TrigUntap:AB$Untap | Cost$ 0 | Defined$ Enchanted
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/volition_reins.jpg
|
||||
End
|
||||
@@ -47,7 +47,7 @@ class CardFactory_Auras {
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static Card getCard(final Card card, String cardName, Player owner) {
|
||||
public static Card getCard(final Card card, final String cardName, Player owner) {
|
||||
|
||||
Command standardUnenchant = new Command() {
|
||||
private static final long serialVersionUID = 3938247133551483568L;
|
||||
@@ -1636,11 +1636,11 @@ class CardFactory_Auras {
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Take Possession")) {
|
||||
else if(cardName.equals("Take Possession") || cardName.equals("Volition Reins")) {
|
||||
final Player[] prevController = new Player[1];
|
||||
prevController[0] = null;
|
||||
|
||||
Ability_Cost cost = new Ability_Cost("5 U U", cardName, false);
|
||||
String costString = cardName.equals("Volition Reins") ? "3 U U U" : "5 U U";
|
||||
Ability_Cost cost = new Ability_Cost(costString, cardName, false);
|
||||
Target tgt = new Target("Select target Permanent", "Permanent".split(","));
|
||||
|
||||
final SpellAbility spell = new Spell(card, cost, tgt) {
|
||||
@@ -1662,7 +1662,10 @@ class CardFactory_Auras {
|
||||
prevController[0] = c.getController();
|
||||
AllZone.GameAction.moveToPlay(card);
|
||||
c.attachCard(card);
|
||||
AllZone.GameAction.changeController(new CardList(c), c.getController(), card.getController());
|
||||
AllZone.GameAction.changeController(new CardList(c), c.getController(), card.getController());
|
||||
if(cardName.equals("Volition Reins")) {
|
||||
if(c.isTapped()) c.untap();
|
||||
}
|
||||
}//resolve()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user