crnormand / gurps

Implementing a GURPS 4e game aid for Foundry VTT
MIT License
102 stars 49 forks source link

[Bug] Match error when selecting Major Wound/Shock #1921

Closed SageThalcos closed 1 month ago

SageThalcos commented 2 months ago

stun

When I click the Major Wound or Shock modifiers from the chat window (after assigning it from the damage menu), I often get a match error:

(This seems to happen erratically - sometimes works, sometimes does not - will always break if I select it a second time)

TypeError: Cannot read properties of undefined (reading 'match') at status.js:171:24 at Array.forEach () at StatusChatProcessor.findEffect (status.js:170:41) at StatusChatProcessor.process (status.js:71:38) at ChatProcessorRegistry.handle (chat.js:191:36) at ChatProcessorRegistry.processLine (chat.js:161:40) at ChatProcessorRegistry.processLines (chat.js:146:27) at async ChatProcessorRegistry.startProcessingLines (chat.js:108:18) at async Object.chat (gurps.js:535:17) at async Object.performAction (gurps.js:1208:9)