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
Additional context
This does not happen for spontaneous spells or prepared spells that aren't upcasted.
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
Additional context This does not happen for spontaneous spells or prepared spells that aren't upcasted.