mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Keyword: Protection from each color (#5424)
This commit is contained in:
@@ -120,8 +120,8 @@ public class DebuffEffect extends SpellAbilityEffect {
|
|||||||
ProtectionFromColor = true;
|
ProtectionFromColor = true;
|
||||||
}
|
}
|
||||||
if (ProtectionFromColor) {
|
if (ProtectionFromColor) {
|
||||||
// Split "Protection from all colors" into extra Protection from <color>
|
// Split "Protection from each color" into extra Protection from <color>
|
||||||
String allColors = "Protection from all colors";
|
String allColors = "Protection from each color";
|
||||||
if (tgtC.hasKeyword(allColors)) {
|
if (tgtC.hasKeyword(allColors)) {
|
||||||
final List<String> allColorsProtect = Lists.newArrayList();
|
final List<String> allColorsProtect = Lists.newArrayList();
|
||||||
|
|
||||||
@@ -134,7 +134,7 @@ public class DebuffEffect extends SpellAbilityEffect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Extra for Spectra Ward
|
// Extra for Spectra Ward
|
||||||
allColors = "Protection:Card.nonColorless:all colors:Aura";
|
allColors = "Protection:Card.nonColorless:each color:Aura";
|
||||||
if (tgtC.hasKeyword(allColors)) {
|
if (tgtC.hasKeyword(allColors)) {
|
||||||
final List<String> allColorsProtect = Lists.newArrayList();
|
final List<String> allColorsProtect = Lists.newArrayList();
|
||||||
|
|
||||||
|
|||||||
@@ -6735,7 +6735,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
pW = true;
|
pW = true;
|
||||||
protectKey += "W";
|
protectKey += "W";
|
||||||
}
|
}
|
||||||
} else if (kw.contains("all colors")) {
|
} else if (kw.contains("each color")) {
|
||||||
protectKey += "allcolors:";
|
protectKey += "allcolors:";
|
||||||
} else if (kw.equals("Protection from everything")) {
|
} else if (kw.equals("Protection from everything")) {
|
||||||
protectKey += "everything:";
|
protectKey += "everything:";
|
||||||
|
|||||||
@@ -676,7 +676,7 @@ public class CardFactoryUtil {
|
|||||||
validSource = "Green" + (damage ? "Source" : "");
|
validSource = "Green" + (damage ? "Source" : "");
|
||||||
} else if (protectType.equals("colorless")) {
|
} else if (protectType.equals("colorless")) {
|
||||||
validSource = "Colorless" + (damage ? "Source" : "");
|
validSource = "Colorless" + (damage ? "Source" : "");
|
||||||
} else if (protectType.equals("all colors")) {
|
} else if (protectType.equals("each color")) {
|
||||||
validSource = "nonColorless" + (damage ? "Source" : "");
|
validSource = "nonColorless" + (damage ? "Source" : "");
|
||||||
} else if (protectType.equals("everything")) {
|
} else if (protectType.equals("everything")) {
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
@@ -3,6 +3,6 @@ ManaCost:3 W
|
|||||||
Types:Instant
|
Types:Instant
|
||||||
A:SP$ Charm | MinCharmNum$ 1 | CharmNum$ Count$Compare Y GE1.2.1 | Choices$ DBFly,DBLife | AdditionalDescription$ . If you control a commander as you cast this spell, you may choose both.
|
A:SP$ Charm | MinCharmNum$ 1 | CharmNum$ Count$Compare Y GE1.2.1 | Choices$ DBFly,DBLife | AdditionalDescription$ . If you control a commander as you cast this spell, you may choose both.
|
||||||
SVar:DBFly:DB$ PumpAll | ValidCards$ Creature.YouCtrl | KW$ Flying & Vigilance & Double Strike | SpellDescription$ Creatures you control gain flying, vigilance, and double strike until end of turn.
|
SVar:DBFly:DB$ PumpAll | ValidCards$ Creature.YouCtrl | KW$ Flying & Vigilance & Double Strike | SpellDescription$ Creatures you control gain flying, vigilance, and double strike until end of turn.
|
||||||
SVar:DBLife:DB$ PumpAll | ValidCards$ Creature.YouCtrl | KW$ Lifelink & Indestructible & Protection from all colors | SpellDescription$ Creatures you control gain lifelink, indestructible, and protection from all colors until end of turn.
|
SVar:DBLife:DB$ PumpAll | ValidCards$ Creature.YouCtrl | KW$ Lifelink & Indestructible & Protection from each color | SpellDescription$ Creatures you control gain lifelink, indestructible, and protection from each color until end of turn.
|
||||||
SVar:Y:Count$Valid Card.IsCommander+YouCtrl
|
SVar:Y:Count$Valid Card.IsCommander+YouCtrl
|
||||||
Oracle:Choose one. If you control a commander as you cast this spell, you may choose both.\n• Creatures you control gain flying, vigilance, and double strike until end of turn.\n• Creatures you control gain lifelink, indestructible, and protection from all colors until end of turn.
|
Oracle:Choose one. If you control a commander as you cast this spell, you may choose both.\n• Creatures you control gain flying, vigilance, and double strike until end of turn.\n• Creatures you control gain lifelink, indestructible, and protection from each color until end of turn.
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ Name:Etched Champion
|
|||||||
ManaCost:3
|
ManaCost:3
|
||||||
Types:Artifact Creature Soldier
|
Types:Artifact Creature Soldier
|
||||||
PT:2/2
|
PT:2/2
|
||||||
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Protection from all colors | Condition$ Metalcraft | Description$ Metalcraft — CARDNAME has protection from all colors as long as you control three or more artifacts.
|
S:Mode$ Continuous | Affected$ Card.Self | AddKeyword$ Protection from each color | Condition$ Metalcraft | Description$ Metalcraft — CARDNAME has protection from each color as long as you control three or more artifacts.
|
||||||
SVar:BuffedBy:Artifact
|
SVar:BuffedBy:Artifact
|
||||||
Oracle:Metalcraft — Etched Champion has protection from all colors as long as you control three or more artifacts.
|
Oracle:Metalcraft — Etched Champion has protection from each color as long as you control three or more artifacts.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Name:Favor of the Mighty
|
Name:Favor of the Mighty
|
||||||
ManaCost:1 W
|
ManaCost:1 W
|
||||||
Types:Kindred Enchantment Giant
|
Types:Kindred Enchantment Giant
|
||||||
S:Mode$ Continuous | Affected$ Creature.greatestCMC_Creature | AddKeyword$ Protection from all colors | Description$ Each creature with the highest mana value has protection from all colors.
|
S:Mode$ Continuous | Affected$ Creature.greatestCMC_Creature | AddKeyword$ Protection from each color | Description$ Each creature with the highest mana value has protection from each color.
|
||||||
SVar:NonStackingEffect:True
|
SVar:NonStackingEffect:True
|
||||||
AI:RemoveDeck:Random
|
AI:RemoveDeck:Random
|
||||||
Oracle:Each creature with the highest mana value has protection from all colors.
|
Oracle:Each creature with the highest mana value has protection from each color.
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ ManaCost:5 W U
|
|||||||
Types:Creature Angel
|
Types:Creature Angel
|
||||||
PT:4/4
|
PT:4/4
|
||||||
K:Flying
|
K:Flying
|
||||||
K:Protection from all colors
|
K:Protection from each color
|
||||||
Oracle:Flying, protection from all colors
|
Oracle:Flying, protection from each color
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ ManaCost:4 W W
|
|||||||
Types:Creature Angel
|
Types:Creature Angel
|
||||||
PT:4/4
|
PT:4/4
|
||||||
K:Flying
|
K:Flying
|
||||||
S:Mode$ Continuous | Affected$ Card.Self+untapped | AddKeyword$ Protection:Artifact & Protection from all colors | Description$ As long as CARDNAME is untapped, it has protection from artifacts and from all colors.
|
S:Mode$ Continuous | Affected$ Card.Self+untapped | AddKeyword$ Protection:Artifact & Protection from each color | Description$ As long as CARDNAME is untapped, it has protection from artifacts and from each color.
|
||||||
T:Mode$ SpellCast | ValidCard$ Card | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | OptionalDecider$ You | Execute$ TrigUntap | TriggerDescription$ Whenever you cast a spell, you may untap CARDNAME.
|
T:Mode$ SpellCast | ValidCard$ Card | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | OptionalDecider$ You | Execute$ TrigUntap | TriggerDescription$ Whenever you cast a spell, you may untap CARDNAME.
|
||||||
SVar:TrigUntap:DB$ Untap | Defined$ Self
|
SVar:TrigUntap:DB$ Untap | Defined$ Self
|
||||||
Oracle:Flying\nAs long as Pristine Angel is untapped, it has protection from artifacts and from all colors.\nWhenever you cast a spell, you may untap Pristine Angel.
|
Oracle:Flying\nAs long as Pristine Angel is untapped, it has protection from artifacts and from each color.\nWhenever you cast a spell, you may untap Pristine Angel.
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ ManaCost:3 W W
|
|||||||
Types:Enchantment Aura
|
Types:Enchantment Aura
|
||||||
K:Enchant creature
|
K:Enchant creature
|
||||||
A:SP$ Attach | Cost$ 3 W W | ValidTgts$ Creature | AILogic$ Pump
|
A:SP$ Attach | Cost$ 3 W W | ValidTgts$ Creature | AILogic$ Pump
|
||||||
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddPower$ 2 | AddToughness$ 2 | AddKeyword$ Protection:Card.nonColorless:all colors:Aura | Description$ Enchanted creature gets +2/+2 and has protection from all colors. This effect doesn't remove auras.
|
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddPower$ 2 | AddToughness$ 2 | AddKeyword$ Protection:Card.nonColorless:each color:Aura | Description$ Enchanted creature gets +2/+2 and has protection from each color. This effect doesn't remove auras.
|
||||||
Oracle:Enchant creature\nEnchanted creature gets +2/+2 and has protection from all colors. This effect doesn't remove Auras. (It can't be blocked, targeted, or dealt damage by anything that's white, blue, black, red, or green.)
|
Oracle:Enchant creature\nEnchanted creature gets +2/+2 and has protection from each color. This effect doesn't remove Auras. (It can't be blocked, targeted, or dealt damage by anything that's white, blue, black, red, or green.)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Name:Eldritch Immunity
|
Name:Eldritch Immunity
|
||||||
ManaCost:C
|
ManaCost:C
|
||||||
Types:Kindred Instant Eldrazi
|
Types:Kindred Instant Eldrazi
|
||||||
A:SP$ Pump | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control | KW$ Protection from all colors | SpellDescription$ Target creature you control gains protection from each color until end of turn.
|
A:SP$ Pump | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control | KW$ Protection from each color | SpellDescription$ Target creature you control gains protection from each color until end of turn.
|
||||||
K:Overload:4 C
|
K:Overload:4 C
|
||||||
Oracle:Target creature you control gains protection from each color until end of turn.\nOverload {4}{C}
|
Oracle:Target creature you control gains protection from each color until end of turn.\nOverload {4}{C}
|
||||||
|
|||||||
Reference in New Issue
Block a user