EffectEffect: now does treat emblems different than Effects, also does try to guess the ImageKey from Name for Emblems

shows the PlaneswalkerType for the Emblem but thats only cosmetic.
This commit is contained in:
Hanmac
2016-07-01 17:41:19 +00:00
parent a2facc6e39
commit 5dcee79d54
4 changed files with 26 additions and 6 deletions

View File

@@ -253,7 +253,7 @@ public class CardPanel extends SkinnedPanel implements CardContainer, IDisposabl
final CardStateView state = getCard().getCurrentState();
final CardEdition ed = FModel.getMagicDb().getEditions().get(state.getSetCode());
boolean colorIsSet = false;
if (state.getType().hasStringType("Effect")) {
if (state.getType().isEmblem() || state.getType().hasStringType("Effect")) {
// Effects are drawn with orange border
g2d.setColor(Color.ORANGE);
colorIsSet = true;