mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Converted Well-Laid Plans to script
This commit is contained in:
@@ -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") : "";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user