mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Ulamog, the Infinite Gyre
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
Name:Ulamog, the Infinite Gyre
|
Name:Ulamog, the Infinite Gyre
|
||||||
ManaCost:11
|
ManaCost:11
|
||||||
Types:Legendary Creature Eldrazi
|
Types:Legendary Creature Eldrazi
|
||||||
Text:When you cast Ulamog, the Infinite Gyre, destroy target permanent.
|
Text:no text
|
||||||
PT:10/10
|
PT:10/10
|
||||||
K:Indestructible
|
K:Indestructible
|
||||||
K:Annihilator 4
|
K:Annihilator 4
|
||||||
K:When CARDNAME is put into a graveyard from anywhere, reveal CARDNAME and its owner shuffles his or her graveyard into his or her library.
|
K:When CARDNAME is put into a graveyard from anywhere, reveal CARDNAME and its owner shuffles his or her graveyard into his or her library.
|
||||||
|
T:Mode$ SpellCast | ValidCard$ Card.Self | Execute$ TrigDestroy | TriggerDescription$ When you cast CARDNAME, destroy target permanent.
|
||||||
|
SVar:TrigDestroy | Cost$ 0 | ValidTgts$ Permanent | TgtPrompt$ Select target permanent
|
||||||
SVar:Rarity:Mythic
|
SVar:Rarity:Mythic
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/ulamog_the_infinite_gyre.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/ulamog_the_infinite_gyre.jpg
|
||||||
SetInfo:ROE|Mythic|http://magiccards.info/scans/en/roe/12.jpg
|
SetInfo:ROE|Mythic|http://magiccards.info/scans/en/roe/12.jpg
|
||||||
|
|||||||
@@ -470,9 +470,7 @@ public class GameActionUtil {
|
|||||||
// (called in MagicStack.java)
|
// (called in MagicStack.java)
|
||||||
Card c = sa.getSourceCard();
|
Card c = sa.getSourceCard();
|
||||||
|
|
||||||
if (c.getName().equals("Ulamog, the Infinite Gyre"))
|
if (c.getName().equals("Emrakul, the Aeons Torn"))
|
||||||
playCard_Ulamog(c);
|
|
||||||
else if (c.getName().equals("Emrakul, the Aeons Torn"))
|
|
||||||
playCard_Emrakul(c);
|
playCard_Emrakul(c);
|
||||||
else if (c.getName().equals("Artisan of Kozilek"))
|
else if (c.getName().equals("Artisan of Kozilek"))
|
||||||
playCard_Artisan_of_Kozilek(c);
|
playCard_Artisan_of_Kozilek(c);
|
||||||
@@ -528,47 +526,6 @@ public class GameActionUtil {
|
|||||||
AllZone.GameAction.checkWheneverKeyword(c,"CastSpell",null);
|
AllZone.GameAction.checkWheneverKeyword(c,"CastSpell",null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void playCard_Ulamog(Card c)
|
|
||||||
{
|
|
||||||
final Card ulamog = c;
|
|
||||||
final Player controller = c.getController();
|
|
||||||
final Ability ability = new Ability(c, "0")
|
|
||||||
{
|
|
||||||
public void chooseTargetAI()
|
|
||||||
{
|
|
||||||
CardList list = AllZoneUtil.getPlayerCardsInPlay(AllZone.HumanPlayer);
|
|
||||||
list = list.filter(new CardListFilter()
|
|
||||||
{
|
|
||||||
public boolean addCard(Card card)
|
|
||||||
{
|
|
||||||
return CardFactoryUtil.canTarget(ulamog, card);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (list.size()>0)
|
|
||||||
{
|
|
||||||
CardListUtil.sortCMC(list);
|
|
||||||
setTargetCard(list.get(0));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public void resolve()
|
|
||||||
{
|
|
||||||
Card crd = getTargetCard();
|
|
||||||
if (crd!=null) {
|
|
||||||
if (CardFactoryUtil.canTarget(ulamog, crd))
|
|
||||||
AllZone.GameAction.destroy(crd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ability.setBeforePayMana(CardFactoryUtil.input_targetPermanent(ability));
|
|
||||||
if (controller.equals(AllZone.HumanPlayer))
|
|
||||||
AllZone.GameAction.playSpellAbility(ability);
|
|
||||||
else {
|
|
||||||
ability.chooseTargetAI();
|
|
||||||
AllZone.Stack.add(ability);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void playCard_Emrakul(Card c)
|
public static void playCard_Emrakul(Card c)
|
||||||
{
|
{
|
||||||
final Player controller = c.getController();
|
final Player controller = c.getController();
|
||||||
|
|||||||
Reference in New Issue
Block a user