Skip to content
Snippets Groups Projects
Commit daff981c authored by Chris Davidson's avatar Chris Davidson
Browse files

Remove leftover Expose Weakness code

parent 04d42167
No related branches found
No related tags found
No related merge requests found
......@@ -324,9 +324,6 @@ setDefaultProjector(function(src, x, y, type, dam, state)
end
local dominated = target:hasEffect(target.EFF_DOMINATED)
if dominated and dominated.src == src then pen = pen + (dominated.resistPenetration or 0) end
-- Expose Weakness
local exposed = (state.is_melee or state.is_archery) and src.__is_actor and src:hasEffect(src.EFF_EXPOSE_WEAKNESS)
if exposed and exposed.target == target then pen = pen + exposed.bonus_pen print("[PROJECTOR] expose weakness pen", exposed.bonus_pen) end
if target:attr("sleep") and src.attr and src:attr("night_terror") then pen = pen + src:attr("night_terror") end
local res = target:combatGetResist(type)
pen = util.bound(pen, 0, 100)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment