mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 21:20:27 -04:00
You don't need to use quotes with #cast now.
This commit is contained in:
parent
b05bd2a9c4
commit
c46100ee68
1 changed files with 2 additions and 2 deletions
4
Input.js
4
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue