mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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;
|
||||
String rightString = lifeCompare.substring(2);
|
||||
if (rightString.equals("X")) {
|
||||
right = CardFactoryUtil.xCount(hostCard, hostCard.getSVar("X"));
|
||||
} else {
|
||||
right = Integer.parseInt(lifeCompare.substring(2));
|
||||
try {
|
||||
right = Integer.parseInt(rightString);
|
||||
}
|
||||
catch (NumberFormatException nfe) {
|
||||
right = CardFactoryUtil.xCount(hostCard, hostCard.getSVar(rightString));
|
||||
}
|
||||
|
||||
if (!AllZoneUtil.compare(life, lifeCompare, right)) {
|
||||
|
||||
Reference in New Issue
Block a user