diff --git a/CHANGELOG.md b/CHANGELOG.md index 5dfb5bfd1..fbd3f4e47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.10.22 Release: +## Bug Fixes: +- Green Flame Blade + # 0.10.21 Release: ## New Content: - Spell: Maximilian's Earthen Grasp diff --git a/scripts/macros/spells/greenFlameBlade.js b/scripts/macros/spells/greenFlameBlade.js index acd68d61c..20b7a38bc 100644 --- a/scripts/macros/spells/greenFlameBlade.js +++ b/scripts/macros/spells/greenFlameBlade.js @@ -44,7 +44,8 @@ export async function greenFlameBlade({speaker, actor, token, character, item, a } if (!target) return; let modifier = chris.getSpellMod(workflow.item); - let damageFormula = level > 4 ? diceNumber + 'd8[' + translate.damageType('fire') + '] + ' + modifier : modifier + '[' + translate.damageType('fire') + ']'; - let damageRoll = await (damageFormula).roll({async: true}); + let damageType = translate.damageType('fire').toLowerCase(); + let damageFormula = level > 4 ? diceNumber + 'd8[' + damageType + '] + ' + modifier : modifier + '[' + damageType + ']'; + let damageRoll = await chris.damageRoll(workflow, damageFormula, undefined, true); await chris.applyWorkflowDamage(workflow.token, damageRoll, 'fire', [target], workflow.item.name, attackWorkflow.itemCardId); } \ No newline at end of file