CardFactoryUtil: add Escaped Modifier

This commit is contained in:
Hans Mackowiak
2020-01-08 10:18:56 +00:00
committed by Michael Kamensky
parent fb6f34d67e
commit 896eb79d2c

View File

@@ -1180,6 +1180,9 @@ public class CardFactoryUtil {
if (sq[0].startsWith("Kicked")) {
return doXMath(Integer.parseInt(sq[c.getKickerMagnitude() > 0 ? 1 : 2]), m, c);
}
if (sq[0].startsWith("Escaped")) {
return doXMath(Integer.parseInt(sq[c.getCastSA() != null && c.getCastSA().isEscape() ? 1 : 2]), m, c);
}
if (sq[0].startsWith("AltCost")) {
return doXMath(Integer.parseInt(sq[c.isOptionalCostPaid(OptionalCost.AltCost) ? 1 : 2]), m, c);
}