mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- CheckStyle.
This commit is contained in:
@@ -241,17 +241,18 @@ public final class CardManaCost implements Comparable<CardManaCost> {
|
|||||||
}
|
}
|
||||||
return iX;
|
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
|
* @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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user