diff --git a/ProjectMoonTRPG/ProjectMoonTRPG.html b/ProjectMoonTRPG/ProjectMoonTRPG.html
index 86eb5a94a74d..ddad6e8cae00 100644
--- a/ProjectMoonTRPG/ProjectMoonTRPG.html
+++ b/ProjectMoonTRPG/ProjectMoonTRPG.html
@@ -17889,6 +17889,8 @@
Edit Mode Password
let langTarget = getTranslationByKeyCustom("[TARGET]", "autoeffect-match-target");
let langTargetIcon = getTranslationByKeyCustom("[/TARGET]", "autoeffect-match-targeticon");
+ console.log(message);
+
if (checkResult == "failure") { message = message.replaceAll(langCheck, "" + langFailure + ""); }
if (checkResult == "no target") { message = message.replaceAll(langCheck, "" + langNoTarget + ""); }
else { message = message.replaceAll(langCheck, "" + langSuccess + ""); }
@@ -17906,8 +17908,20 @@ Edit Mode Password
/* Icon handling */
/* Get target icon. Is in this format: [/TARGET]. If a effectIcon is procided, use that instead */
if (effectIcon != "No icon") {
- if (settingLimbusStyle == "true") { effectIcon = effectIcon.replace("limbus/",""); }
- message = message.replaceAll(langTargetIcon, getIcon("ailments", effectIcon, settingLimbusStyle, `class="autoEffectImage" style="background-color: ${iconColor}"`));
+ let iconFolder = "ailments";
+
+ if (effectIcon.includes("community")) {
+ iconFolder = "community";
+ effectIcon = effectIcon.replace("community/","");
+ }
+ if (settingLimbusStyle == "true") {
+ effectIcon = effectIcon.replace("limbus/","");
+ }
+ console.log(iconFolder);
+ console.log(effectIcon);
+ console.log(message);
+
+ message = message.replaceAll(langTargetIcon, getIcon(iconFolder, effectIcon, settingLimbusStyle, `class="autoEffectImage" style="background-color: ${iconColor}"`));
} else {
message = message.replaceAll(langTargetIcon, getIcon("ailments", effectTarget.replace("_"," "), settingLimbusStyle, `class="autoEffectImage" style="background-color: ${iconColor}"`));
}