diff --git a/forge-game/src/main/java/forge/game/staticability/StaticAbilityPreventDamage.java b/forge-game/src/main/java/forge/game/staticability/StaticAbilityPreventDamage.java index 1a26dd7ac02..28fc7fe1ef6 100644 --- a/forge-game/src/main/java/forge/game/staticability/StaticAbilityPreventDamage.java +++ b/forge-game/src/main/java/forge/game/staticability/StaticAbilityPreventDamage.java @@ -71,6 +71,16 @@ public class StaticAbilityPreventDamage { return restDamage; } + if (params.containsKey("SourceSharesColorWithTarget")) { + if (!(target instanceof Card) || source.equals(target)) { + return restDamage; + } + Card targetCard = (Card) target; + if (!source.sharesColorWith(targetCard)) { + return restDamage; + } + } + if (params.containsKey("Optional")) { //Assume if param is present it should be optional if (!isTest) { final String logic = params.containsKey("AILogic") ? params.get("AILogic") : ""; diff --git a/forge-gui/res/cardsfolder/w/well_laid_plans.txt b/forge-gui/res/cardsfolder/w/well_laid_plans.txt index b605d5f5e8d..2247c4a17bd 100644 --- a/forge-gui/res/cardsfolder/w/well_laid_plans.txt +++ b/forge-gui/res/cardsfolder/w/well_laid_plans.txt @@ -1,7 +1,7 @@ Name:Well-Laid Plans ManaCost:2 U Types:Enchantment -Text:Prevent all damage that would be dealt to a creature by another creature if they share a color. +S:Mode$ PreventDamage | Source$ Creature | Target$ Creature | SourceSharesColorWithTarget$ True | Description$ Prevent all damage that would be dealt to a creature by another creature if they share a color. SVar:NonStackingEffect:True SVar:RemRandomDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/well_laid_plans.jpg