CardFactoryUtil: fixed Prevent$ parameter on Replacement Effects

This commit is contained in:
Hanmac
2017-05-10 05:49:23 +00:00
parent 42dc6c3662
commit 2fc3f12fa8

View File

@@ -3463,7 +3463,7 @@ public class CardFactoryUtil {
to = true; to = true;
} }
String rep = "Event$ DamageDone | Prevention$ True"; String rep = "Event$ DamageDone | Prevent$ True";
if (isCombat) { if (isCombat) {
rep += "| IsCombat$ True"; rep += "| IsCombat$ True";
} }
@@ -3492,7 +3492,7 @@ public class CardFactoryUtil {
// No finish yet, need card updates // No finish yet, need card updates
if (keyword.startsWith("PreventAllDamageBy") && keyword.contains(":")) { if (keyword.startsWith("PreventAllDamageBy") && keyword.contains(":")) {
final String[] k = keyword.split(":"); final String[] k = keyword.split(":");
String rep = "Event$ DamageDone | Prevention$ True | ValidTarget$ Card.Self | ValidSource$ " + k[1]; String rep = "Event$ DamageDone | Prevent$ True | ValidTarget$ Card.Self | ValidSource$ " + k[1];
rep += "| Description$ "; rep += "| Description$ ";
if (k.length > 2) { if (k.length > 2) {
rep += k[2]; rep += k[2];