mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +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 {
|
||||
x = Integer.parseInt(rhs);
|
||||
} 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
|
||||
// (currently two CMCs are encoded in one big integer value)
|
||||
|
||||
Reference in New Issue
Block a user