I suspect the problem is in this Superloading section at line 409 of the mod which came under this heading "-- Superloading every incResource function for Gift of the Highborn."
Code: Select all
if _M.incSteam then
local old_incSteam = _M.incSteam
function _M:incPsi(resource)
local eff = self:hasEffect(self.EFF_SK_HIGHBORN_GIFT)
if eff and resource < 0 then
self.tempeffect_def[self.EFF_SK_HIGHBORN_GIFT].doHeal(self, eff, resource, "Steam")
end
return old_incSteam(self, resource)
end
end
This didn't work since it hid the addon from the addon list in the main menu. Commenting out this section and straight up deleting it had the same result. This kinda suprised me since I expected removing the code to have the same effect as returning false.
So my question is basiclly how could I fix this so Psi gets expended? Thanks.