mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Added Emrakul, the Aeons Thorn.
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
Emrakul, the Aeons Thorn
|
||||
15
|
||||
Legendary Creature Eldrazi
|
||||
When you cast Emrakul, take an extra turn after this one.
|
||||
15/15
|
||||
This card can't be countered.
|
||||
Flying
|
||||
Protection from colored spells
|
||||
Annihilator 6
|
||||
When this card is put into a graveyard from anywhere, reveal this card and shuffle it into its owner's library instead.
|
||||
|
||||
Warp Artifact
|
||||
B B
|
||||
Enchantment Aura
|
||||
|
||||
@@ -14983,7 +14983,7 @@ public class CardFactory implements NewConstants {
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
System.out.println("Turn: " + AllZone.Phase.getTurn());
|
||||
//System.out.println("Turn: " + AllZone.Phase.getTurn());
|
||||
AllZone.Phase.addExtraTurn(card.getController());
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2719,6 +2719,13 @@ public class CardFactoryUtil {
|
||||
return canTarget(ability.getSourceCard(), target);
|
||||
}
|
||||
|
||||
public static boolean isColored(Card c)
|
||||
{
|
||||
return CardUtil.getColors(c).contains(Constant.Color.White) || CardUtil.getColors(c).contains(Constant.Color.Blue) ||
|
||||
CardUtil.getColors(c).contains(Constant.Color.Black) || CardUtil.getColors(c).contains(Constant.Color.Red) ||
|
||||
CardUtil.getColors(c).contains(Constant.Color.Green);
|
||||
}
|
||||
|
||||
public static boolean canTarget(Card spell, Card target) {
|
||||
if(target == null) return true;
|
||||
//System.out.println("Target:" + target);
|
||||
@@ -2758,6 +2765,9 @@ public class CardFactoryUtil {
|
||||
if(kw.equals("Protection from enchantments") && spell.getType().contains("Enchantment")) return false;
|
||||
|
||||
if(kw.equals("Protection from everything")) return false;
|
||||
|
||||
if(kw.equals("Protection from colored spells") && (spell.isInstant() || spell.isSorcery() || spell.isAura() ) &&
|
||||
isColored(spell)) return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -205,6 +205,8 @@ public class GameActionUtil {
|
||||
playCard_Kozilek(c);
|
||||
else if (c.getName().equals("Ulamog, the Infinite Gyre"))
|
||||
playCard_Ulamog(c);
|
||||
else if (c.getName().equals("Emrakul, the Aeons Thorn"))
|
||||
playCard_Emrakul(c);
|
||||
|
||||
playCard_Cascade(c);
|
||||
|
||||
@@ -307,6 +309,21 @@ public class GameActionUtil {
|
||||
}
|
||||
}
|
||||
|
||||
public static void playCard_Emrakul(Card c)
|
||||
{
|
||||
final String controller = c.getController();
|
||||
final Ability ability = new Ability(c, "0")
|
||||
{
|
||||
public void resolve()
|
||||
{
|
||||
AllZone.Phase.addExtraTurn(controller);
|
||||
}
|
||||
};
|
||||
ability.setStackDescription(c + " - When you cast Emrakul, take an extra turn after this one.");
|
||||
AllZone.Stack.add(ability);
|
||||
|
||||
}
|
||||
|
||||
public static void playCard_Cascade(Card c) {
|
||||
|
||||
if(c.getKeyword().contains("Cascade") || c.getName().equals("Bituminous Blast")) //keyword gets cleared for Bitumonous Blast
|
||||
|
||||
Reference in New Issue
Block a user