- CheckStyle.

This commit is contained in:
Chris
2012-11-08 14:26:25 +00:00
parent b9f8b85a33
commit a68bec27d1

View File

@@ -243,15 +243,16 @@ public final class CardManaCost implements Comparable<CardManaCost> {
} }
/** /**
* Can this mana cost be paid with unlimited mana of given color set * Can this mana cost be paid with unlimited mana of given color set.
* @param color * @param color
* @return * @return
*/ */
public boolean canBePaidWithManaOfColor(CardColor color) { public boolean canBePaidWithManaOfColor(CardColor color) {
for (ManaCostShard shard : shards) { for (ManaCostShard shard : shards) {
if (!shard.canBePaidWithManaOfColor(color)) if (!shard.canBePaidWithManaOfColor(color)) {
return false; return false;
}
} }
return true; return true;
} }