mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
add Magistrate's Scepter (from Mercadian Masques)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -2520,6 +2520,7 @@ res/cardsfolder/magefire_wings.txt -text svneol=native#text/plain
|
|||||||
res/cardsfolder/magetas_boon.txt -text svneol=native#text/plain
|
res/cardsfolder/magetas_boon.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/maggot_carrier.txt -text svneol=native#text/plain
|
res/cardsfolder/maggot_carrier.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/maggot_therapy.txt -text svneol=native#text/plain
|
res/cardsfolder/maggot_therapy.txt -text svneol=native#text/plain
|
||||||
|
res/cardsfolder/magistrates_scepter.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/magma_giant.txt -text svneol=native#text/plain
|
res/cardsfolder/magma_giant.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/magma_jet.txt -text svneol=native#text/plain
|
res/cardsfolder/magma_jet.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/magma_rift.txt -text svneol=native#text/plain
|
res/cardsfolder/magma_rift.txt -text svneol=native#text/plain
|
||||||
|
|||||||
8
res/cardsfolder/magistrates_scepter.txt
Normal file
8
res/cardsfolder/magistrates_scepter.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
Name:Magistrate's Scepter
|
||||||
|
ManaCost:3
|
||||||
|
Types:Artifact
|
||||||
|
Text:no text
|
||||||
|
A:AB$PutCounter|Cost$4 T|CounterType$CHARGE|CounterNum$1|SpellDescription$Put a charge counter on CARDNAME.
|
||||||
|
SVar:Rarity:Rare
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/magistrates_scepter.jpg
|
||||||
|
End
|
||||||
@@ -11163,7 +11163,7 @@ public class CardFactory implements NewConstants {
|
|||||||
card.addSpellAbility(ability);
|
card.addSpellAbility(ability);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
//*************** START ************ START **************************
|
//*************** START ************ START **************************
|
||||||
else if(cardName.equals("Black Mana Battery") || cardName.equals("Blue Mana Battery")
|
else if(cardName.equals("Black Mana Battery") || cardName.equals("Blue Mana Battery")
|
||||||
|| cardName.equals("Green Mana Battery") || cardName.equals("Red Mana Battery")
|
|| cardName.equals("Green Mana Battery") || cardName.equals("Red Mana Battery")
|
||||||
|| cardName.equals("White Mana Battery")) {
|
|| cardName.equals("White Mana Battery")) {
|
||||||
@@ -11225,6 +11225,30 @@ public class CardFactory implements NewConstants {
|
|||||||
addMana.setBeforePayMana(runtime);
|
addMana.setBeforePayMana(runtime);
|
||||||
card.addSpellAbility(addMana);
|
card.addSpellAbility(addMana);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
//*************** START ************ START **************************
|
||||||
|
else if(cardName.equals("Magistrate's Scepter")) {
|
||||||
|
Ability_Cost abCost = new Ability_Cost("T", cardName, true);
|
||||||
|
final Ability_Activated addTurn = new Ability_Activated(card, abCost, null) {
|
||||||
|
private static final long serialVersionUID = -8712180600748576359L;
|
||||||
|
@Override
|
||||||
|
public boolean canPlay() {
|
||||||
|
return card.getCounters(Counters.CHARGE) >= 3;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public boolean canPlayAI() {
|
||||||
|
return canPlay();
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void resolve() {
|
||||||
|
card.subtractCounter(Counters.CHARGE, 3);
|
||||||
|
AllZone.Phase.addExtraTurn(card.getController());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
addTurn.setDescription("tap, Remove three charge counters from Magistrate's Scepter: Take an extra turn after this one.");
|
||||||
|
addTurn.setStackDescription(cardName+" - take an extra turn after this one.");
|
||||||
|
card.addSpellAbility(addTurn);
|
||||||
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
return postFactoryKeywords(card);
|
return postFactoryKeywords(card);
|
||||||
}//getCard2
|
}//getCard2
|
||||||
|
|||||||
Reference in New Issue
Block a user