mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 21:20:27 -04:00
Fixed character name being required for basic hashtags. Resolves #1
This commit is contained in:
parent
de7d28cfa8
commit
87b3485069
2 changed files with 1 additions and 4 deletions
|
@ -159,6 +159,7 @@ function calculateRoll(rolltext) {
|
|||
|
||||
function getCharacter(characterName) {
|
||||
if (characterName == null) characterName = state.characterName
|
||||
if (characterName == null) return null
|
||||
return state.characters.find((element) => element.name.toLowerCase() == characterName.toLowerCase())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue