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;
|
||||
}
|
||||
if (ProtectionFromColor) {
|
||||
// Split "Protection from all colors" into extra Protection from <color>
|
||||
String allColors = "Protection from all colors";
|
||||
// Split "Protection from each color" into extra Protection from <color>
|
||||
String allColors = "Protection from each color";
|
||||
if (tgtC.hasKeyword(allColors)) {
|
||||
final List<String> allColorsProtect = Lists.newArrayList();
|
||||
|
||||
@@ -134,7 +134,7 @@ public class DebuffEffect extends SpellAbilityEffect {
|
||||
}
|
||||
|
||||
// Extra for Spectra Ward
|
||||
allColors = "Protection:Card.nonColorless:all colors:Aura";
|
||||
allColors = "Protection:Card.nonColorless:each color:Aura";
|
||||
if (tgtC.hasKeyword(allColors)) {
|
||||
final List<String> allColorsProtect = Lists.newArrayList();
|
||||
|
||||
|
||||
@@ -6735,7 +6735,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
||||
pW = true;
|
||||
protectKey += "W";
|
||||
}
|
||||
} else if (kw.contains("all colors")) {
|
||||
} else if (kw.contains("each color")) {
|
||||
protectKey += "allcolors:";
|
||||
} else if (kw.equals("Protection from everything")) {
|
||||
protectKey += "everything:";
|
||||
|
||||
@@ -676,7 +676,7 @@ public class CardFactoryUtil {
|
||||
validSource = "Green" + (damage ? "Source" : "");
|
||||
} else if (protectType.equals("colorless")) {
|
||||
validSource = "Colorless" + (damage ? "Source" : "");
|
||||
} else if (protectType.equals("all colors")) {
|
||||
} else if (protectType.equals("each color")) {
|
||||
validSource = "nonColorless" + (damage ? "Source" : "");
|
||||
} else if (protectType.equals("everything")) {
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user