mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
convert Prowess of the Fair to triggers
This commit is contained in:
@@ -2,7 +2,8 @@ Name:Prowess of the Fair
|
||||
ManaCost:1 B
|
||||
Types:Tribal Enchantment Elf
|
||||
Text:no text
|
||||
K:Whenever another nontoken Elf is put into your graveyard from the battlefield, you may put a 1/1 green Elf Warrior creature token onto the battlefield.
|
||||
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Elf.nonToken+Other+YouOwn | TriggerZones$ Battlefield | Execute$ TrigToken | Optional$ True | TriggerDescription$ Whenever another nontoken Elf is put into your graveyard from the battlefield, you may put a 1/1 green Elf Warrior creature token onto the battlefield.
|
||||
SVar:TrigToken:AB$Token | Cost$ 0 | TokenAmount$ 1 | TokenName$ Elf Warrior | TokenTypes$ Creature,Elf,Warrior | TokenOwner$ Controller | TokenColors$ Green | TokenPower$ 1 | TokenToughness$ 1
|
||||
SVar:RemAIDeck:True
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/prowess_of_the_fair.jpg
|
||||
|
||||
@@ -2463,18 +2463,7 @@ public class GameActionUtil {
|
||||
//***CREATURES START HERE***
|
||||
|
||||
public static void executeDestroyCreatureCardEffects(Card c, Card destroyed) {
|
||||
//if (AllZone.GameAction.isCardInPlay(c)){
|
||||
|
||||
/* Goblin Sharpshooter converted to trigger
|
||||
if(c.getName().equals("Goblin Sharpshooter")) destroyCreature_Goblin_Sharpshooter(c, destroyed);
|
||||
*/
|
||||
|
||||
if (c.getName().equals("Prowess of the Fair")
|
||||
&& destroyed.isType("Elf")
|
||||
&& !destroyed.isToken()
|
||||
&& !c.equals(destroyed)
|
||||
&& destroyed.getController().equals(c.getController())) destroyCreature_Prowess_of_the_Fair(c, destroyed);
|
||||
else if (c.getName().equals("Fecundity")) destroyCreature_Fecundity(c, destroyed);
|
||||
if (c.getName().equals("Fecundity")) destroyCreature_Fecundity(c, destroyed);
|
||||
else if (c.getName().equals("Moonlit Wake")) destroyCreature_Moonlit_Wake(c, destroyed);
|
||||
else if (c.getName().equals("Proper Burial")
|
||||
&& destroyed.getController().equals(c.getController())) destroyCreature_Proper_Burial(c, destroyed);
|
||||
@@ -2487,41 +2476,6 @@ public class GameActionUtil {
|
||||
|
||||
//***
|
||||
|
||||
/* Goblin Sharpshooter converted to trigger
|
||||
private static void destroyCreature_Goblin_Sharpshooter(Card c, Card destroyed) {
|
||||
//not using stack for this one
|
||||
if(AllZone.GameAction.isCardInPlay(c) && c.isTapped()) c.untap();
|
||||
}
|
||||
*/
|
||||
|
||||
private static void destroyCreature_Prowess_of_the_Fair(Card c, Card destroyed) {
|
||||
final Card crd = c;
|
||||
final Card crd2 = c;
|
||||
|
||||
Ability ability = new Ability(c, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
Player player = crd.getController();
|
||||
if (player.isHuman()) {
|
||||
String question = "Put a 1/1 green Elf Warrior creature token onto the battlefield?";
|
||||
if (showYesNoDialog(crd2, question)) makeToken();
|
||||
} else makeToken();
|
||||
}
|
||||
|
||||
public void makeToken() {
|
||||
CardFactoryUtil.makeToken("Elf Warrior", "G 1 1 Elf Warrior", crd.getController(), "G",
|
||||
new String[] {"Creature", "Elf", "Warrior"}, 1, 1, new String[] {""});
|
||||
}
|
||||
};
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Prowess of the Fair - ").append(c.getController());
|
||||
sb.append(" may put a 1/1 green Elf Warrior creature token onto the battlefield.");
|
||||
ability.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.add(ability);
|
||||
}
|
||||
|
||||
private static void destroyCreature_Fecundity(Card c, Card destroyed) {
|
||||
final Card crd = destroyed;
|
||||
final Card crd2 = c;
|
||||
|
||||
Reference in New Issue
Block a user