Skip to content
Snippets Groups Projects
Commit da01c565 authored by dg's avatar dg
Browse files

Fixed Flexible Combat to work with weapons

git-svn-id: http://svn.net-core.org/repos/t-engine4@6342 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3420a6a4
No related branches found
No related tags found
No related merge requests found
......@@ -217,7 +217,7 @@ function _M:attackTarget(target, damtype, mult, noenergy, force_unharmed)
if self:attr("unharmed_attack_on_hit") then
local v = self:attr("unharmed_attack_on_hit")
self:attr("unharmed_attack_on_hit", -v)
if mean == "unharmed" and rng.percent(60) then self:attackTarget(target, nil, 1, true, true) end
if rng.percent(60) then self:attackTarget(target, nil, 1, true, true) end
self:attr("unharmed_attack_on_hit", v)
end
......
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