Fixed mana-symbol-textbox being rendered on permanents other than lands

* Basic lands have the mana symbol in their textbox rather than their actual text. That was erroneously being applied to other permanents like Elvish Mystics with only a single mana adding ability as text.
This commit is contained in:
Mark Langen 2016-09-15 16:04:46 -06:00
parent 5a6a62ecbf
commit 80e8603a3a

View file

@ -764,7 +764,7 @@ public class ModernCardRenderer extends CardRenderer {
}
// Basic mana draw mana symbol in textbox (for basic lands)
if (allRules.size() == 1 && allRules.get(0) instanceof TextboxBasicManaRule) {
if (allRules.size() == 1 && (allRules.get(0) instanceof TextboxBasicManaRule) && cardView.getCardTypes().contains(CardType.LAND)) {
drawBasicManaTextbox(g, x, y, w, h, ((TextboxBasicManaRule)allRules.get(0)).getBasicManaSymbol());
return;
}