mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Changes to Emblems
Emblems now read "Emblem Planeswalker" instead of "Planeswalker emblem" Image name now is "emblem_planeswalker" If this breaks anything please revert. Also added some colons to oracle texts for some planeswalkers.
This commit is contained in:
@@ -336,10 +336,10 @@ public abstract class SpellAbilityEffect {
|
||||
final Card eff = new Card(game.nextCardId(), game);
|
||||
eff.setTimestamp(game.getNextTimestamp());
|
||||
eff.setName(name);
|
||||
// if name includes emplem then it should be one
|
||||
eff.addType(name.endsWith("emblem") ? "Emblem" : "Effect");
|
||||
// if name includes emblem then it should be one
|
||||
eff.addType(name.startsWith("emblem") ? "Emblem" : "Effect");
|
||||
// add Planeswalker types into Emblem for fun
|
||||
if (name.endsWith("emblem") && hostCard.isPlaneswalker()) {
|
||||
if (name.startsWith("emblem") && hostCard.isPlaneswalker()) {
|
||||
for (final String type : hostCard.getType().getSubtypes()) {
|
||||
if (CardType.isAPlaneswalkerType(type)) {
|
||||
eff.addType(type);
|
||||
|
||||
@@ -104,7 +104,7 @@ public class EffectEffect extends SpellAbilityEffect {
|
||||
String image;
|
||||
if (sa.hasParam("Image")) {
|
||||
image = ImageKeys.getTokenKey(sa.getParam("Image"));
|
||||
} else if (name.endsWith("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();
|
||||
|
||||
Reference in New Issue
Block a user