mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 21:20:27 -04:00
Added the ability to damage registered enemies with #attack
This commit is contained in:
parent
599c9c0852
commit
9d2381e631
2 changed files with 36 additions and 6 deletions
|
@ -152,9 +152,9 @@ function getArgumentRemainder(command, index) {
|
|||
}
|
||||
}
|
||||
|
||||
function searchArgument(command, pattern) {
|
||||
function searchArgument(command, pattern, limit) {
|
||||
var index = searchArgumentIndex(command, pattern)
|
||||
if (index == -1) return null
|
||||
if (index == -1 || limit != null && index > limit) return null
|
||||
return getArgument(command, index)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue