From f3f0dd24124927cdd824809dc032934df35e7f31 Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Sun, 20 Oct 2013 01:43:37 +0200 Subject: [PATCH] woops --- game/modules/tome/class/interface/Archery.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/class/interface/Archery.lua b/game/modules/tome/class/interface/Archery.lua index 06dd698ea7..4b8d23b094 100644 --- a/game/modules/tome/class/interface/Archery.lua +++ b/game/modules/tome/class/interface/Archery.lua @@ -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 -- GitLab