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;
}
}

View File

@@ -0,0 +1,10 @@
Name:Benevolent Blessing
ManaCost:1 W
Types:Enchantment Aura
K:Flash
K:Enchant creature
K:ETBReplacement:Other:ChooseColor
SVar:ChooseColor:DB$ ChooseColor | Defined$ You | AILogic$ MostProminentInHumanDeck | SpellDescription$ As CARDNAME enters the battlefield, choose a color.
A:SP$ Attach | Cost$ 1 W | ValidTgts$ Creature | AILogic$ Pump
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddKeyword$ Protection:Card.ChosenColor:Protection from ChosenColor:Aura.YouCtrl,Equipment.YouCtrl | Description$ Enchanted creature has protection from the chosen color. This effect doesn't remove Auras and Equipment you control that are already attached to it.
Oracle:Flash\nEnchant creature\nAs Benevolent Blessing enters the battlefield, choose a color.\nEnchanted creature has protection from the chosen color. This effect doesn't remove Auras and Equipment you control that are already attached to it.