[1.6.5]Two bugs in Cursed Sentry
Posted: Mon Dec 30, 2019 3:23 pm
in data/talents/cursed/cursed-aura.lua:520
e.egoed shoud be o.egoed instead.
in data/talents/cursed/cursed-aura.lua:540
getDammod accept combat as parameter, not combat.dammod
Also, it would return 0.6 str as default, so in case of ammo, the dammod should be cleared.
It should be
Code: Select all
local egos = o.egos_number or (o.ego_list and #o.ego_list) or (e.egoed and 1) or 0
in data/talents/cursed/cursed-aura.lua:540
Code: Select all
local dammod = sentry:getDammod(o.combat.dammod or {})
if qo then
for stat, mod in pairs(sentry:getDammod(qo.combat.dammod or {})) do
dammod[stat] = (dammod[stat] or 0) + mod
end
end
Also, it would return 0.6 str as default, so in case of ammo, the dammod should be cleared.
It should be
Code: Select all
local dammod = sentry:getDammod(o.combat)
if qo then
dammod = {}
for stat, mod in pairs(sentry:getDammod(qo.combat or {})) do
dammod[stat] = (dammod[stat] or 0) + mod
end
end