convert Manta Ray to a keyword

This commit is contained in:
jendave
2011-08-06 16:46:56 +00:00
parent cb8a879af5
commit eb3f4e0fcb
2 changed files with 6 additions and 5 deletions

View File

@@ -1,9 +1,10 @@
Name:Manta Ray
ManaCost:1 U U
Types:Creature Fish
Text:Manta Ray can't be blocked except by blue creatures.
Text:no text
PT:3/3
K:CARDNAME can't attack unless defending player controls an Island.
K:CARDNAME can't be blocked except by blue creatures.
K:When you control no Islands, sacrifice CARDNAME.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/manta_ray.jpg

View File

@@ -328,14 +328,14 @@ public class CombatUtil {
&& !blocker.isRed()) return false;
}
if(attacker.getName().equals("Manta Ray")) {
if(!blocker.isBlue()) return false;
}
if(attacker.getKeyword().contains("CARDNAME can't be blocked except by black creatures.")) {
if(!blocker.isBlack())return false;
}
if(attacker.getKeyword().contains("CARDNAME can't be blocked except by blue creatures.")) {
if(!blocker.isBlue())return false;
}
if (attacker.getKeyword().contains("CARDNAME can't be blocked by Walls.") && blocker.isType("Wall")) return false;
if (attacker.getKeyword().contains("CARDNAME can't be blocked except by Walls.") && !blocker.isType("Wall")) return false;