implemented "can't be target" for Karplusan Strider.

This commit is contained in:
jendave
2011-08-06 14:43:00 +00:00
parent f259c501f0
commit 31c2234bc0
2 changed files with 11 additions and 1 deletions

View File

@@ -1,8 +1,10 @@
Name:Karplusan Strider
ManaCost:3 G
Types:Creature Yeti
Text:(NOTE: "Karplusan Strider can't be the target of blue or black spells." not implemented.)
Text:no text
PT:3/4
K:CARDNAME can't be the target of blue spells.
K:CARDNAME can't be the target of black spells.
SVar:Rarity:Uncommon
SVar:Picture:http://resources.wizards.com/magic/cards/csp/en-us/card121214.jpg
SetInfo:CSP|Uncommon|http://magiccards.info/scans/en/cs/112.jpg

View File

@@ -3139,6 +3139,14 @@ public class CardFactoryUtil {
if(kw.equals("CARDNAME can't be the target of red spells or abilities from red sources.")) {
if(spell.isRed()) return false;
}
if(kw.equals("CARDNAME can't be the target of black spells.")) {
if(spell.isBlack() && spell.isSpell()) return false;
}
if(kw.equals("CARDNAME can't be the target of blue spells.")) {
if(spell.isBlue() && spell.isSpell()) return false;
}
}
}
return true;