Skip to content
Snippets Groups Projects
Commit f3f0dd24 authored by DarkGod's avatar DarkGod
Browse files

woops

parent 9c7bbcd3
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,11 @@ local function archery_projectile(tx, ty, tg, self, tmp)
dam = dam * mult
print("[ATTACK ARCHERY] after mult", dam)
if self:isAccuracyEffect(ammo, "mace") then
local bonus = 1 + self:getAccuracyEffect(ammo, atk, def, 0.001, 0.1)
print("[ATTACK] mace accuracy bonus", atk, def, "=", bonus)
dam = dam * bonus
end
local hd = {"Combat:archeryDamage", hitted=hitted, target=target, weapon=weapon, ammo=ammo, damtype=damtype, mult=1, dam=dam}
if self:triggerHook(hd) then
......
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