mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Converted some cards to the new CantTarget static ability.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user