ReplaceMoved: add missing part for Buyback

This commit is contained in:
Hanmac
2017-10-05 16:56:06 +00:00
parent d514944657
commit 0733f7a69a

View File

@@ -95,6 +95,15 @@ public class ReplaceMoved extends ReplacementEffect {
} }
} }
if (hasParam("ValidStackSa")) {
if (!runParams.containsKey("StackSa")) {
return false;
}
if (!matchesValid(runParams.get("StackSa"), getParam("ValidStackSa").split(","), getHostCard())) {
return false;
}
}
if (hasParam("Cause")) { if (hasParam("Cause")) {
if (!runParams.containsKey("Cause")) { if (!runParams.containsKey("Cause")) {
return false; return false;