From c46100ee68611b8e1ffd4c656ff0150e2c87f582 Mon Sep 17 00:00:00 2001 From: raeleus Date: Sat, 28 Sep 2024 14:51:24 -0700 Subject: [PATCH] You don't need to use quotes with #cast now. --- Input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Input.js b/Input.js index 7195228..ad84f23 100644 --- a/Input.js +++ b/Input.js @@ -1564,8 +1564,8 @@ function doCastSpell(command) { if (!/^((at)|(on))\s+.*/.test(target)) target = "at " + target } } else { - if (/.*\s((at)|(on))\s.*/i.test(spell)) { - var remainder = getArgumentRemainder(command, spellIndex) + var remainder = getArgumentRemainder(command, spellIndex) + if (/.*\s((at)|(on))\s.*/i.test(remainder)) { spell = remainder.replace(/\s+((at)|(on)).*/i, "").trim() target = remainder.replace(/^.*\s+(?=(at)|(on))/i, "").trim() } else {