add Magistrate's Scepter (from Mercadian Masques)

This commit is contained in:
jendave
2011-08-06 09:27:14 +00:00
parent 92a4d5bf0b
commit aac1e35ff1
3 changed files with 34 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -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/maggot_carrier.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_jet.txt -text svneol=native#text/plain
res/cardsfolder/magma_rift.txt -text svneol=native#text/plain

View 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

View File

@@ -11226,6 +11226,30 @@ public class CardFactory implements NewConstants {
card.addSpellAbility(addMana);
}//*************** 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);
}//getCard2