mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
AbilityManaPart: add valid check for the SA itself
split later into extra check for SA and Host
This commit is contained in:
@@ -168,6 +168,10 @@ public class ForgeScript {
|
||||
if (!sa.isFlashBackAbility()) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.equals("Kicked")) {
|
||||
if (!sa.isKicked()) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.equals("Aftermath")) {
|
||||
if (!sa.isAftermath()) {
|
||||
return false;
|
||||
|
||||
@@ -337,6 +337,10 @@ public class AbilityManaPart implements java.io.Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
if (sa.isValid(restriction, this.getSourceCard().getController(), this.getSourceCard(), null)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (sa.isAbility()) {
|
||||
if (restriction.startsWith("Activated")) {
|
||||
restriction = TextUtil.fastReplace(restriction, "Activated", "Card");
|
||||
|
||||
Reference in New Issue
Block a user