diff --git a/game/modules/tome/class/interface/Archery.lua b/game/modules/tome/class/interface/Archery.lua index 06dd698ea7c01dbcd0c2a8afa10fad9ef7c5ba79..4b8d23b094df3c728ab5a8234eb12678d45454ff 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