mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Card: hasProperty cmc uses AbilityUtils.calculateAmount to get the compared value
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user