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.
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.