Error in extension call to [string "5E:scripts/manager_actor_5E.lua"]:204
Recently since last major release I've been having my players get this error
[ERROR] Handler error: [string "5E:scripts/manager_actor_5E.lua"]:204: attempt to index local 'sAbility' (a number value)
on a polymorphism extension call. Only after several hours of playing and if we exit game and come up it does not happen again.
Nowhere in the poly code does it call ActorManager5E.getAbilityBonus with a number.
It only calls it in 3 places:
Code:
rRoll.nTarget = 8 + ActorManager5E.getAbilityBonus(rSource, aPowerGroup.sSaveDCStat) + ActorManager5E.getAbilityBonus(rSource, "prf") + aPowerGroup.nSaveDCMod;
and
Code:
for k, v in pairs(DataCommon.skilldata) do
local sBestLabel = "";
local nBestMod = 0;
local nNPCBestMod = 0;
local nBonus = ActorManager5E.getAbilityBonus(rnodeNewCTEntryActor, v.stat);
and
Code:
for k, v in pairs(DataCommon.ability_ltos) do
local nBonus = ActorManager5E.getAbilityBonus(rnodeNewCTEntryActor, k);
None of these are numbers in the 2nd arg of getAbiliyBonus.