Skip to content

Commit

Permalink
fix: Improve description of autorevealing privately cast spells. Fix …
Browse files Browse the repository at this point in the history
…handling of damagerolls with no context options.
  • Loading branch information
xdy committed Feb 11, 2024
1 parent 684092e commit a75c0dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/module/feature/damageHandler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function autoRollDamage(message: ChatMessagePF2e) {
const isFailure = ["criticalFailure", "failure"].includes(degreeOfSuccess);
const isSuccess = ["criticalSuccess", "success"].includes(degreeOfSuccess);
const context: any = flags.context;
const isBasicSave = context.options.includes("item:defense:basic");
const isBasicSave = context?.options?.includes("item:defense:basic");
if (
actor &&
(rollForNonAttackNonSaveSpell ||
Expand Down
8 changes: 4 additions & 4 deletions static/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,12 @@
"aSpell": "A spell"
},
"castPrivateSpellAutoRevealIfKnown": {
"hint": "Check to not cast privately if any party member knows the spell.",
"name": "... but don't cast privately if spell known by party."
"hint": "Check to autoreveal privately cast spell if any party member knows the spell.",
"name": "... but autoreveal spell if it is known by party."
},
"castPrivateSpellAutoRevealPartyMembersThatKnowSpell": {
"hint": "Check to show party members that know the spell in the chat card",
"name": "... and list the party members that know it"
"hint": "Check to, for autorevealed spells, show party members that know the spell in the chat card",
"name": "... and list the party members that know the autorevealed spell"
},
"castPrivateSpellHideName": {
"hint": "Check to hide the name of a privately cast spell in the damage roll instead of hiding the damage roll.",
Expand Down

0 comments on commit a75c0dc

Please sign in to comment.