Skip to content

Commit

Permalink
[#3719] Appropriately cast XP to Number when parsing award enricher (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilWhite authored Jun 12, 2024
1 parent 289ad35 commit c8ee424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/applications/award.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export default class Award extends DialogMixin(FormApplication) {
try {
new Roll(amount);
if ( label in CONFIG.DND5E.currencies ) currency[label] = amount;
else if ( label === "xp" ) xp = amount;
else if ( label === "xp" ) xp = Number(amount);
else if ( part === "each" ) each = true;
else if ( part === "party" ) party = true;
else throw new Error();
Expand Down

0 comments on commit c8ee424

Please sign in to comment.