*Added Shimmer Myr.

This commit is contained in:
jendave
2011-08-06 17:02:27 +00:00
parent 0cfb7e3e6b
commit ba8ee48df0
3 changed files with 23 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -4864,6 +4864,7 @@ res/cardsfolder/shield_sphere.txt -text svneol=native#text/plain
res/cardsfolder/shield_wall.txt -text svneol=native#text/plain
res/cardsfolder/shielding_plax.txt -text svneol=native#text/plain
res/cardsfolder/shifting_wall.txt -text svneol=native#text/plain
res/cardsfolder/shimmer_myr.txt -text svneol=native#text/plain
res/cardsfolder/shimmering_barrier.txt -text svneol=native#text/plain
res/cardsfolder/shimmering_grotto.txt -text svneol=native#text/plain
res/cardsfolder/shimmering_wings.txt svneol=native#text/plain

View File

@@ -0,0 +1,10 @@
Name:Shimmer Myr
ManaCost:3
Types:Artifact Creature Myr
Text:You may cast artifact cards as though they had flash.
PT:2/2
K:Flash
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/shimmer_myr.jpg
End
#Uses card-specific code.

View File

@@ -153,9 +153,20 @@ public class Spell_Permanent extends Spell {
return false;
}
CardList listShimmerMyr = new CardList(AllZone.getZone(Constant.Zone.Battlefield, perm.getController()).getCards());
listShimmerMyr = listShimmerMyr.filter(new CardListFilter() {
public boolean addCard(Card c) {
return c.getName().equals("Shimmer Myr");
}
});
return super.canPlay()
|| (getSourceCard().getKeyword().contains("Flash") && !AllZone.GameAction.isCardInPlay(getSourceCard())
&& !getSourceCard().isUnCastable());
&& !getSourceCard().isUnCastable())
|| ((perm.getType().contains("Artifact") && listShimmerMyr.size() != 0) && !AllZone.GameAction.isCardInPlay(getSourceCard())
&& !getSourceCard().isUnCastable());
}
@Override