Emblem fixed startwith

This commit is contained in:
Hanmac
2017-09-02 10:28:07 +00:00
parent 190703d74b
commit be3d4723ef
2 changed files with 3 additions and 3 deletions

View File

@@ -337,9 +337,9 @@ public abstract class SpellAbilityEffect {
eff.setTimestamp(game.getNextTimestamp());
eff.setName(name);
// if name includes emblem then it should be one
eff.addType(name.startsWith("emblem") ? "Emblem" : "Effect");
eff.addType(name.startsWith("Emblem") ? "Emblem" : "Effect");
// add Planeswalker types into Emblem for fun
if (name.startsWith("emblem") && hostCard.isPlaneswalker()) {
if (name.startsWith("Emblem") && hostCard.isPlaneswalker()) {
for (final String type : hostCard.getType().getSubtypes()) {
if (CardType.isAPlaneswalkerType(type)) {
eff.addType(type);

View File

@@ -104,7 +104,7 @@ public class EffectEffect extends SpellAbilityEffect {
String image;
if (sa.hasParam("Image")) {
image = ImageKeys.getTokenKey(sa.getParam("Image"));
} else if (name.startsWith("emblem")) { // try to get the image from name
} else if (name.startsWith("Emblem")) { // try to get the image from name
image = ImageKeys.getTokenKey(name.replace(",", "").replace(" ", "_").toLowerCase());
} else { // use host image
image = hostCard.getImageKey();