reyzor1991 / pf2e-wiki

1 stars 0 forks source link

[BUG] Incorrect incapacitation behavior when rolling saving throws from modules buttons #46

Closed Qenthel94 closed 7 months ago

Qenthel94 commented 7 months ago

Describe the bug Using the buttons that get displayed to players to roll saving throw for spells incorrectly grants incap benefits in case of upcasted prepared incap spells. To Reproduce Steps to reproduce the behavior: Create an npc with high enough level to access rank 8 spell slots Add an occult prepared spellcasting entry for him Add Paralyze to his spellbook and prepare it in 8th rank slot Cast rank 8 paralyze on a level 15 PC Roll a saving throw as that PC from the "they just cast a spell" button

Expected behavior Saving throw does not benefit from the incapacitation trait since the spell rank is more than twice the level of the PC

Actual behavior Saving throw gains the benefit of the incapacitation trait

Screenshots image

Additional context This does not happen for spontaneous spells or prepared spells that aren't upcasted.