- Fixed spells without costs being playable.

This commit is contained in:
Sloth
2013-06-22 10:08:03 +00:00
parent 2fd6fde9b5
commit 8e50d42099

View File

@@ -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;
} }