Skip to content

Commit

Permalink
0.8.27 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisk123999 committed Nov 15, 2023
1 parent eb0b8bb commit cf0652d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.8.27 Release:
## Bug Fixes:
- Booming Blade
- Green-Flame Blade

# 0.8.26 Release:
## New Content:
- Spells: Booming Blade and Green-Flame Blade
Expand Down
4 changes: 2 additions & 2 deletions scripts/macros/spells/boomingBlade.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function item({speaker, actor, token, character, item, args, scope, workfl
if (!selection) [selection] = await chris.selectDocument('Attack with what weapon?', weapons);
if (!selection) return;
let level = chris.levelOrCR(workflow.actor);
let diceNumber = 1 + Math.floor((level + 1) / 6);
let diceNumber = Math.floor((level + 1) / 6);
let weapon;
if (level > 4) {
let weaponData = duplicate(selection.toObject());
Expand Down Expand Up @@ -73,7 +73,7 @@ async function item({speaker, actor, token, character, item, args, scope, workfl
'chris-premades': {
'spell': {
'boomingBlade': {
'diceNumber': diceNumber
'diceNumber': diceNumber + 1
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/macros/spells/greenFlameBlade.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function greenFlameBlade({speaker, actor, token, character, item, a
if (!selection) [selection] = await chris.selectDocument('Attack with what weapon?', weapons);
if (!selection) return;
let level = chris.levelOrCR(workflow.actor);
let diceNumber = 1 + Math.floor((level + 1) / 6);
let diceNumber = Math.floor((level + 1) / 6);
let weapon;
if (level > 4) {
let weaponData = duplicate(selection.toObject());
Expand Down

0 comments on commit cf0652d

Please sign in to comment.