mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +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") : "";
|
||||
|
||||
Reference in New Issue
Block a user