mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
add Sharuum the Hegemon (from Shards of Alara)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -3528,6 +3528,7 @@ res/cardsfolder/shanodin_dryads.txt -text svneol=native#text/plain
|
|||||||
res/cardsfolder/shaper_guildmage.txt -text svneol=native#text/plain
|
res/cardsfolder/shaper_guildmage.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/shard_volley.txt -text svneol=native#text/plain
|
res/cardsfolder/shard_volley.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/shared_triumph.txt -text svneol=native#text/plain
|
res/cardsfolder/shared_triumph.txt -text svneol=native#text/plain
|
||||||
|
res/cardsfolder/sharuum_the_hegemon.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/shatter.txt -text svneol=native#text/plain
|
res/cardsfolder/shatter.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/shattered_dreams.txt -text svneol=native#text/plain
|
res/cardsfolder/shattered_dreams.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/shattering_pulse.txt -text svneol=native#text/plain
|
res/cardsfolder/shattering_pulse.txt -text svneol=native#text/plain
|
||||||
|
|||||||
9
res/cardsfolder/sharuum_the_hegemon.txt
Normal file
9
res/cardsfolder/sharuum_the_hegemon.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Name:Sharuum the Hegemon
|
||||||
|
ManaCost:3 W U B
|
||||||
|
Types:Legendary Artifact Creature Sphinx
|
||||||
|
Text:When Sharuum the Hegemon enters the battlefield, you may return target artifact card from your graveyard to the battlefield.
|
||||||
|
PT:5/5
|
||||||
|
K:Flying
|
||||||
|
SVar:Rarity:Mythic
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/sharuum_the_hegemon.jpg
|
||||||
|
End
|
||||||
@@ -20357,6 +20357,57 @@ public class CardFactory_Creatures {
|
|||||||
card.addComesIntoPlayCommand(cip);
|
card.addComesIntoPlayCommand(cip);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
//*************** START *********** START ************************
|
||||||
|
if(cardName.equals("Sharuum the Hegemon")) {
|
||||||
|
final SpellAbility ability = new Ability(card, "0") {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void chooseTargetAI() {
|
||||||
|
CardList grave = getGraveArts();
|
||||||
|
Card target = CardFactoryUtil.AI_getBestArtifact(grave);
|
||||||
|
setTargetCard(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void resolve() {
|
||||||
|
if(card.getController().equals(Constant.Player.Human)) {
|
||||||
|
Card c = AllZone.Display.getChoice("Select card", getGraveArts().toArray());
|
||||||
|
setTargetCard(c);
|
||||||
|
}
|
||||||
|
|
||||||
|
Card target = getTargetCard();
|
||||||
|
|
||||||
|
PlayerZone grave = AllZone.getZone(Constant.Zone.Graveyard, card.getController());
|
||||||
|
PlayerZone play = AllZone.getZone(Constant.Zone.Play, card.getController());
|
||||||
|
if(AllZone.GameAction.isCardInZone(target, grave)
|
||||||
|
&& CardFactoryUtil.canTarget(card, target))
|
||||||
|
AllZone.GameAction.moveTo(play, target);
|
||||||
|
}//resolve()
|
||||||
|
|
||||||
|
CardList getGraveArts() {
|
||||||
|
CardList list = AllZoneUtil.getPlayerGraveyard(card.getController());
|
||||||
|
return list.filter(AllZoneUtil.artifacts);
|
||||||
|
}
|
||||||
|
};//SpellAbility
|
||||||
|
|
||||||
|
final Command cip = new Command() {
|
||||||
|
private static final long serialVersionUID = 7977273396908140261L;
|
||||||
|
|
||||||
|
CardList getGraveArts() {
|
||||||
|
CardList list = AllZoneUtil.getPlayerGraveyard(card.getController());
|
||||||
|
return list.filter(AllZoneUtil.artifacts);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void execute() {
|
||||||
|
if(getGraveArts().size() > 0)
|
||||||
|
AllZone.Stack.add(ability);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
ability.setStackDescription(cardName + " - return target artifact from your graveyard to the battlefield.");
|
||||||
|
card.addComesIntoPlayCommand(cip);
|
||||||
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
// Cards with Cycling abilities
|
// Cards with Cycling abilities
|
||||||
// -1 means keyword "Cycling" not found
|
// -1 means keyword "Cycling" not found
|
||||||
|
|||||||
Reference in New Issue
Block a user