mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Fixed spells without costs being playable.
This commit is contained in:
@@ -90,8 +90,9 @@ public abstract class Spell extends SpellAbility implements java.io.Serializable
|
|||||||
if (!this.getRestrictions().canPlay(card, this)) {
|
if (!this.getRestrictions().canPlay(card, this)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// for uncastables like lotus bloom, check if manaCost is blank
|
// for uncastables like lotus bloom, check if manaCost is blank
|
||||||
if (isBasicSpell() && (getPayCosts() == null || getPayCosts().getTotalMana().isNoCost())) {
|
if (isBasicSpell() && card.getManaCost().isNoCost()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user