- Converted some cards to the new CantTarget static ability.

This commit is contained in:
Sloth
2011-11-13 12:44:27 +00:00
parent 05b4699e43
commit 23efb3e559
7 changed files with 13 additions and 6 deletions

View File

@@ -16,6 +16,10 @@ public class StaticAbilityCantTarget {
final Card hostCard = stAb.getHostCard();
final Card source = sa.getSourceCard();
final Player activator = sa.getActivatingPlayer();
if (params.containsKey("Spell") && !sa.isSpell()) {
return false;
}
if (params.containsKey("ValidCard")
&& !card.isValid(params.get("ValidCard").split(","), hostCard.getController(), hostCard)) {
@@ -32,6 +36,7 @@ public class StaticAbilityCantTarget {
return false;
}
return true;
}