- CheckStyle.

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

View File

@@ -241,17 +241,18 @@ public final class CardManaCost implements Comparable<CardManaCost> {
}
return iX;
}
/**
* 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
* @return
*/
public boolean canBePaidWithManaOfColor(CardColor color) {
for (ManaCostShard shard : shards) {
if (!shard.canBePaidWithManaOfColor(color))
for (ManaCostShard shard : shards) {
if (!shard.canBePaidWithManaOfColor(color)) {
return false;
}
}
return true;
}