Skip to content

Commit

Permalink
0.10.22 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisk123999 committed Mar 4, 2024
1 parent deef8a4 commit 7d96380
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.10.22 Release:
## Bug Fixes:
- Green Flame Blade

# 0.10.21 Release:
## New Content:
- Spell: Maximilian's Earthen Grasp
Expand Down
5 changes: 3 additions & 2 deletions scripts/macros/spells/greenFlameBlade.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 7d96380

Please sign in to comment.