Skip to content

Commit

Permalink
fix: For targeting reminder, ignore messages without context type.
Browse files Browse the repository at this point in the history
  • Loading branch information
xdy committed Jan 19, 2025
1 parent 9c8dc2b commit 020b734
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/module/feature/reminders/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ export function reminderTargeting(message: ChatMessagePF2e, setting: string): bo
shouldIHandleThis(message.actor) &&
message.flags &&
message.author &&
context &&
context.type &&
["spell-attack-roll", "attack-roll"].includes(<string>context.type)
) {
const targets = (<UserPF2e>message.author).targets;
Expand Down

0 comments on commit 020b734

Please sign in to comment.