PDA

View Full Version : onAttackPreModRoll does not have rRoll.bSpell set - its nil



SilentRuin
May 6th, 2026, 19:44
Before this last TEST went LIVE my code intercepting rolls processed the rRoll.bSpell correctly. Now its not set so my logic fails.

For example:

I roll attack die for fire bolt spell - when I intercept

_fnOrigOnAttackPreModRoll = GameManager.getMultiKeyFunction("onActionPreModRoll", "attack");

the rRoll for the fire bolt spell attack when it enters onAttackPreModRoll is

{ s'aDice' = { #1 = { s'type' = s'd20' } }, s'nOrder' = #1, s'tEffectDice' = { }, s'bADV' = bFALSE, s'nEffectMod' = #0, s'sRange' = s'R', s'sLabel' = s'Fire Bolt', s'bDIS' = bFALSE, s'nOrigClauses' = #0, s'nMod' = #3, s'bStatic' = bFALSE, s'sType' = s'attack', s'bEffects' = bFALSE, s'tNotifications' = { }, s'sDesc' = s'[ATTACK (R)] Fire Bolt' }

There is not any bSpell parameter defined.

Moon Wizard
May 6th, 2026, 23:51
Please run a new Check for Updates, and let me know if still having the issue. Just pushed a 5E update.

Regards,
JPG

SilentRuin
May 7th, 2026, 05:45
Worked thanks.