forgot some code for Ghazban Ogre. The LifeAmount param in Trigger restrictions now accepts any SVar, not just 'X'.

This commit is contained in:
slapshot5
2011-10-05 07:48:01 +00:00
parent 7c6b96acd2
commit a230d52339

View File

@@ -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)) {