benevolent_blessing.txt + support for multiple protection exceptions

This commit is contained in:
Northmoc
2020-11-11 15:59:26 -05:00
parent 862fd7a0d3
commit 742c241995
2 changed files with 12 additions and 2 deletions

View File

@@ -5494,9 +5494,9 @@ public class Card extends GameEntity implements Comparable<Card> {
}
final String[] characteristics = characteristic.split(",");
final String exception = kws.length > 3 ? kws[3] : null; // check "This effect cannot remove sth"
final String[] exceptions = kws.length > 3 ? kws[3].split(",") : null; // check "This effect cannot remove sth"
if (source.isValid(characteristics, getController(), this, null)
&& (!checkSBA || exception == null || !source.isValid(exception, getController(), this, null))) {
&& (!checkSBA || exceptions == null || !source.isValid(exceptions, getController(), this, null))) {
return true;
}
}