diff --git a/game/modules/tome/data/damage_types.lua b/game/modules/tome/data/damage_types.lua index dbd50099a7575e3e46dfd98cf9bd145878d849d6..ac21ebdb004989b39cffc86a12ed1858e5bc8f7c 100644 --- a/game/modules/tome/data/damage_types.lua +++ b/game/modules/tome/data/damage_types.lua @@ -286,6 +286,7 @@ setDefaultProjector(function(src, x, y, type, dam, tmp, no_martyr) print("[PROJECTOR] after self-resists dam", dam) end + local initial_dam = dam lastdam = dam -- Static reduce damage for psionic kinetic shield if target.isTalentActive and target:isTalentActive(target.T_KINETIC_SHIELD) then @@ -400,8 +401,6 @@ setDefaultProjector(function(src, x, y, type, dam, tmp, no_martyr) print("[PROJECTOR] final dam after static checks", dam) - local initial_dam = dam - local hd = {"DamageProjector:final", src=src, x=x, y=y, type=type, dam=dam, tmp=tmp, no_martyr=no_martyr} if src:triggerHook(hd) then dam = hd.dam if hd.stopped then return hd.stopped end end if target.fireTalentCheck then