mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
forgot some code for Ghazban Ogre. The LifeAmount param in Trigger restrictions now accepts any SVar, not just 'X'.
This commit is contained in:
@@ -327,10 +327,11 @@ public abstract class Trigger {
|
|||||||
|
|
||||||
int right = 1;
|
int right = 1;
|
||||||
String rightString = lifeCompare.substring(2);
|
String rightString = lifeCompare.substring(2);
|
||||||
if (rightString.equals("X")) {
|
try {
|
||||||
right = CardFactoryUtil.xCount(hostCard, hostCard.getSVar("X"));
|
right = Integer.parseInt(rightString);
|
||||||
} else {
|
}
|
||||||
right = Integer.parseInt(lifeCompare.substring(2));
|
catch (NumberFormatException nfe) {
|
||||||
|
right = CardFactoryUtil.xCount(hostCard, hostCard.getSVar(rightString));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!AllZoneUtil.compare(life, lifeCompare, right)) {
|
if (!AllZoneUtil.compare(life, lifeCompare, right)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user