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

Merge branch 'annihilator-fixes' into 'master'

added proc power reduction function to archery



See merge request !605
parents 734be520 2737ee65
No related branches found
No related tags found
1 merge request!605added proc power reduction function to archery
Pipeline #
......@@ -454,7 +454,12 @@ local function archery_projectile(tx, ty, tg, self, tmp)
target:fireTalentCheck("callbackOnArcheryMiss", self, tg)
end
if tg.archery.proc_mult then
self.__global_accuracy_damage_bonus = self.__global_accuracy_damage_bonus or 1
self.__global_accuracy_damage_bonus = self.__global_accuracy_damage_bonus * tg.archery.proc_mult
end
-- Ranged project
local weapon_ranged_project = weapon.ranged_project or {}
local ammo_ranged_project = ammo.ranged_project or {}
......@@ -657,8 +662,10 @@ local function archery_projectile(tx, ty, tg, self, tmp)
target.turn_procs.roll_with_it = true
end
self.turn_procs.weapon_type = nil
self.turn_procs.weapon_type = nil
if tg.archery.use_psi_archery then self:attr("use_psi_combat", -1) end
self.__global_accuracy_damage_bonus = nil
end
-- Store it for addons
......
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