mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Merge branch 'mdfc' into 'master'
Correctly evaluate modal faces See merge request core-developers/forge!5112
This commit is contained in:
@@ -182,7 +182,7 @@ public final class CardRules implements ICardCharacteristics {
|
||||
//if card face has no cost, assume castable only by mana of its defined color
|
||||
return face.getColor().hasNoColorsExcept(colorCode);
|
||||
}
|
||||
return face.getManaCost().canBePaidWithAvaliable(colorCode);
|
||||
return face.getManaCost().canBePaidWithAvailable(colorCode);
|
||||
}
|
||||
|
||||
public boolean canCastWithAvailable(byte colorCode) {
|
||||
|
||||
@@ -353,7 +353,7 @@ public final class ManaCost implements Comparable<ManaCost>, Iterable<ManaCostSh
|
||||
* @param colorCode
|
||||
* @return
|
||||
*/
|
||||
public boolean canBePaidWithAvaliable(byte colorCode) {
|
||||
public boolean canBePaidWithAvailable(byte colorCode) {
|
||||
for (ManaCostShard shard : shards) {
|
||||
if (!shard.isPhyrexian() && !shard.canBePaidWithManaOfColor(colorCode)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user