mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
CardFactoryUtil: add Escaped Modifier
This commit is contained in:
committed by
Michael Kamensky
parent
fb6f34d67e
commit
896eb79d2c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user