From 050c9a7ee182d6e9f6a49c2731ceb9310c5376d9 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Fri, 11 Mar 2022 20:51:16 +0100 Subject: fix effects --- webAO/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webAO/client.js') diff --git a/webAO/client.js b/webAO/client.js index 41d7625..7b0c9cd 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -2097,8 +2097,8 @@ class Viewport { // apply effects fg.style.animation = ''; - const badEffects = ['-', 'none']; - if (this.chatmsg.effects[0] && !badEffects.includes(this.chatmsg.effects[i].toLowerCase())) { + const badEffects = ['', '-', 'none']; + if (this.chatmsg.effects[0] && !badEffects.includes(this.chatmsg.effects[0].toLowerCase())) { const baseEffectUrl = `${AO_HOST}themes/default/effects/`; fg.src = `${baseEffectUrl}${encodeURI(this.chatmsg.effects[0].toLowerCase())}.webp`; } else { -- cgit