diff --git a/.gitattributes b/.gitattributes index 02f103488ee..dfeb08f4e3b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3621,6 +3621,7 @@ res/cardsfolder/seascape_aerialist.txt -text svneol=native#text/plain res/cardsfolder/seashell_cameo.txt -text svneol=native#text/plain res/cardsfolder/seaside_citadel.txt -text svneol=native#text/plain res/cardsfolder/seaside_haven.txt -text svneol=native#text/plain +res/cardsfolder/seasinger.txt -text svneol=native#text/plain res/cardsfolder/seasoned_marshal.txt -text svneol=native#text/plain res/cardsfolder/seat_of_the_synod.txt -text svneol=native#text/plain res/cardsfolder/secluded_steppe.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/seasinger.txt b/res/cardsfolder/seasinger.txt new file mode 100644 index 00000000000..4c8d8a56d5d --- /dev/null +++ b/res/cardsfolder/seasinger.txt @@ -0,0 +1,10 @@ +Name:Seasinger +ManaCost:1 U U +Types:Creature Merfolk +Text:Gain control of target creature whose controller controls an Island for as long as you control Seasinger and Seasinger remains tapped. +PT:0/1 +K:You may choose not to untap CARDNAME during your untap step. +K:When you control no Islands, sacrifice CARDNAME. +SVar:Rarity:Uncommon +SVar:Picture:http://www.wizards.com/global/images/magic/general/seasinger.jpg +End diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index a40fb16cdbc..2a49e63a3c5 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -19072,7 +19072,7 @@ public class CardFactory_Creatures { //*************** START *********** START ************************** - else if(cardName.equals("Old Man of the Sea")) { + else if(cardName.equals("Old Man of the Sea") || cardName.equals("Seasinger")) { /* * Tap: Gain control of target creature with power less than or * equal to Old Man of the Sea's power for as long as Old Man of @@ -19171,7 +19171,8 @@ public class CardFactory_Creatures { card.addSpellAbility(ability); - Input target = new Input() { + //for Old Man of the Sea + Input oldMan = new Input() { private static final long serialVersionUID = -2079490830593191467L; public void showMessage() { AllZone.Display.showMessage("Select target Creature with power less or equal to: "+card.getNetAttack()); @@ -19187,7 +19188,31 @@ public class CardFactory_Creatures { } } };//input - ability.setBeforePayMana(target); + + //for Seasinger + Input seasinger = new Input() { + private static final long serialVersionUID = -6908603582102989044L; + public void showMessage() { + AllZone.Display.showMessage("Select target Creature"); + ButtonUtil.enableOnlyCancel(); + } + public void selectButtonCancel() { + stop(); + } + public void selectCard(Card c, PlayerZone zone) { + if(zone.is(Constant.Zone.Play) && c.isCreature() + && (AllZoneUtil.getPlayerTypeInPlay(c.getController(), "Island").size() > 0)) { + ability.setTargetCard(c); + stopSetNext(new Input_NoCost_TapAbility(ability)); + } + } + };//input + if(cardName.equals("Old Man of the Sea")) { + ability.setBeforePayMana(oldMan); + } + else if( cardName.equals("Seasinger")) { + ability.setBeforePayMana(seasinger); + } }//*************** END ************ END **************************