PDA

View Full Version : PF2E: Script error when using shift to force crit damage and adding dice



Chandley
October 31st, 2020, 21:24
Reproduce:

Pick up damage from the actions page of a character sheet, right click to add a die, then hold left shift and drop damage (on chat window or target).

Result: Console Log:

[10/31/2020 3:13:13 PM] RULESET: Pathfinder RPG Second Edition ruleset v3.3.11 (PF2 release 17e) for Fantasy Grounds
Copyright 2020 Smiteworks USA, LLC
[10/31/2020 3:13:13 PM] RULESET: Core RPG ruleset v3.3.12 for Fantasy Grounds
Copyright 2019 Smiteworks USA, LLC
[10/31/2020 3:14:17 PM] [ERROR] Script execution error: [string "scripts/manager_action_damage.lua"]:381: attempt to call method 'sub' (a nil value)

and the dice roll the normal damage with the added dice, but not critical damage:

[DAMAGE (M)] Shock/Fire Flickmace [TYPE: bludgeoning, silver, magic (3d8+25=43)] [TYPE: fire (1d6=4)] [TYPE: electricity (1d6=2)]

This came about from using power attack (which adds +2 weapon dice at 10th+ level, and the player manually did this by right clicking to add dice. Which worked, though it is not showing up in the text copied to clip board I pasted above)

Windows 10, English, Pathfinder 2e Ruleset, migrated campaign from FGC.
Modules: Age of Ashes AP 1 through 5, Pathfinder Second Edition Core Rules, FG Battlemaps, PF2 Bestiary, Age of Ashes Player's Resource 3-5, Age of Ashes Player's Guide.

40639

Trenloe
November 1st, 2020, 09:59
Thanks for reporting. This appears to be an issue with Unity as I can recreate in Unity but not in Classic. I've asked the dev to have a look.