Fixed character name being required for basic hashtags. Resolves #1

This commit is contained in:
raeleus 2024-09-22 23:38:55 -07:00
parent de7d28cfa8
commit 87b3485069
2 changed files with 1 additions and 4 deletions

View file

@ -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())
}