Skip to content

Commit

Permalink
Zephyr Strike Crit Dice
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Jul 31, 2023
1 parent 78ce346 commit 676f0b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# NEXT UP

- Correct "Chain Shirt" icon for monster items. e.g. on the Goblin Boss.
- Effect: ZephyrStrike now handles crit dice correctly.

# 3.4.52

Expand Down
16 changes: 11 additions & 5 deletions src/effects/spells/zephyrStrike.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,41 @@ export async function zephyrStrikeEffect(document) {
// macroToCall
effect.changes.push(
{
key: "flags.midi-qol.optional.ZepyrStrike.macroToCall",
key: "flags.midi-qol.optional.ZephyrStrike.macroToCall",
mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
value: "ItemMacro.Zephyr Strike",
priority: "20",
},
{
key: "flags.midi-qol.optional.ZepyrStrike.damage.mwak",
key: "flags.midi-qol.optional.ZephyrStrike.damage.mwak",
mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
value: `${document.system.damage.parts[0][0]}`,
priority: "20",
},
{
key: "flags.midi-qol.optional.ZepyrStrike.damage.rwak",
key: "flags.midi-qol.optional.ZephyrStrike.damage.rwak",
mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
value: `${document.system.damage.parts[0][0]}`,
priority: "20",
},
{
key: "flags.midi-qol.optional.ZepyrStrike.count",
key: "flags.midi-qol.optional.ZephyrStrike.count",
mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
value: "1",
priority: "20",
},
{
key: "flags.midi-qol.optional.ZepyrStrike.label",
key: "flags.midi-qol.optional.ZephyrStrike.label",
mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
value: "Gain Zephyr Strike damage bonus?",
priority: "20",
},
{
key: "flags.midi-qol.optional.ZephyrStrike.criticalDamage",
mode: CONST.ACTIVE_EFFECT_MODES.CUSTOM,
value: "1",
priority: "20",
},
);

document.system.target.type = "self";
Expand Down

0 comments on commit 676f0b8

Please sign in to comment.