mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
xCount was passing in source Card, but this.getSVar(). fixed.
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user