mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
benevolent_blessing.txt + support for multiple protection exceptions
This commit is contained in:
@@ -5494,9 +5494,9 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final String[] characteristics = characteristic.split(",");
|
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)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10
forge-gui/res/cardsfolder/upcoming/benevolent_blessing.txt
Normal file
10
forge-gui/res/cardsfolder/upcoming/benevolent_blessing.txt
Normal 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.
|
||||||
Reference in New Issue
Block a user