aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-03-11 20:51:16 +0100
committerstonedDiscord <Tukz@gmx.de>2022-03-11 20:51:16 +0100
commit050c9a7ee182d6e9f6a49c2731ceb9310c5376d9 (patch)
treefbc934aa24f38d116f0d288dbbff723c5b70e590 /webAO/client.js
parent2208efda7db95023319af774fb32832e47dd8b55 (diff)
fix effects
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js4
1 files changed, 2 insertions, 2 deletions
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 {