Card: hasProperty cmc uses AbilityUtils.calculateAmount to get the compared value

This commit is contained in:
Hanmac
2016-07-16 04:29:43 +00:00
parent 35d069eca8
commit c44876d1e0

View File

@@ -4938,7 +4938,7 @@ public class Card extends GameEntity implements Comparable<Card> {
try { try {
x = Integer.parseInt(rhs); x = Integer.parseInt(rhs);
} catch (final NumberFormatException e) { } catch (final NumberFormatException e) {
x = CardFactoryUtil.xCount(source, source.getSVar(rhs)); x = AbilityUtils.calculateAmount(source, source.getSVar(rhs), spellAbility);
// TODO: find a better solution for handling Count$TopOfLibraryCMC for split cards // TODO: find a better solution for handling Count$TopOfLibraryCMC for split cards
// (currently two CMCs are encoded in one big integer value) // (currently two CMCs are encoded in one big integer value)