xCount was passing in source Card, but this.getSVar(). fixed.

This commit is contained in:
jendave
2011-08-06 10:52:30 +00:00
parent 6da6983ae0
commit fc7ed63e63

View File

@@ -2487,8 +2487,9 @@ public class Card extends MyObservable {
y = getCMC();
}
if (Property.substring(z).equals("X"))
x = CardFactoryUtil.xCount(source, getSVar("X"));
if (Property.substring(z).equals("X")) {
x = CardFactoryUtil.xCount(source, source.getSVar("X"));
}
else
x = Integer.parseInt(Property.substring(z));