add Denizen of the Deep

This commit is contained in:
jendave
2011-08-06 14:32:57 +00:00
parent 69da0d4fcb
commit ee266af462
3 changed files with 40 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -1240,6 +1240,7 @@ res/cardsfolder/demonic_tutor.txt -text svneol=native#text/plain
res/cardsfolder/demons_horn.txt -text svneol=native#text/plain
res/cardsfolder/demons_jester.txt -text svneol=native#text/plain
res/cardsfolder/demystify.txt -text svneol=native#text/plain
res/cardsfolder/denizen_of_the_deep.txt -text svneol=native#text/plain
res/cardsfolder/dense_canopy.txt -text svneol=native#text/plain
res/cardsfolder/deny_reality.txt -text svneol=native#text/plain
res/cardsfolder/denying_wind.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,8 @@
Name:Denizen of the Deep
ManaCost:6 U U
Types:Creature Serpent
Text:When CARDNAME enters the battlefield, return each other creature you control to its owner's hand.
PT:11/11
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/denizen_of_the_deep.jpg
End

View File

@@ -13476,6 +13476,37 @@ public class CardFactory_Creatures {
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Denizen of the Deep")) {
final SpellAbility returnAll = new Ability(card, "0") {
@Override
public void resolve() {
CardList creatures = AllZoneUtil.getCreaturesInPlay(card.getController());
creatures.remove(card);
for(Card c:creatures) {
AllZone.GameAction.moveToHand(c);
}
}
};
Command intoPlay = new Command() {
private static final long serialVersionUID = 7181675096954076868L;
public void execute() {
StringBuilder sb = new StringBuilder();
sb.append(cardName).append(" - ");
sb.append("return each other creature you control to its owner's hand.");
returnAll.setStackDescription(sb.toString());
AllZone.Stack.add(returnAll);
}
};
card.addComesIntoPlayCommand(intoPlay);
}//*************** END ************ END **************************
if(hasKeyword(card, "Level up") != -1 && hasKeyword(card, "maxLevel") != -1)
{
int n = hasKeyword(card, "Level up");