mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
CardProperty: hasXCost, it should check ManaCost
This commit is contained in:
@@ -345,13 +345,7 @@ public final class ManaCost implements Comparable<ManaCost>, Iterable<ManaCostSh
|
||||
* @return
|
||||
*/
|
||||
public int countX() {
|
||||
int iX = 0;
|
||||
for (ManaCostShard shard : shards) {
|
||||
if (shard == ManaCostShard.X) {
|
||||
iX++;
|
||||
}
|
||||
}
|
||||
return iX;
|
||||
return getShardCount(ManaCostShard.X);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user