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

Removed off-guard effect from accuracy vs defense checks

git-svn-id: http://svn.net-core.org/repos/t-engine4@6042 51575b47-30f0-44d4-a5cc-537603b46e54
parent 32c3ce23
No related branches found
No related tags found
No related merge requests found
......@@ -221,6 +221,7 @@ local function archery_projectile(tx, ty, tg, self, tmp)
end
-- cross-tier effect for accuracy vs. defense
--[[
local tier_diff = self:getTierDiff(atk, target:combatDefense(false, target:attr("combat_def_ct")))
if hitted and not target.dead and tier_diff > 0 then
local reapplied = false
......@@ -233,7 +234,7 @@ local function archery_projectile(tx, ty, tg, self, tmp)
end
target:setEffect(target.EFF_OFFGUARD, tier_diff, {}, reapplied)
end
]]
-- Ranged project
local weapon_ranged_project = weapon.ranged_project or {}
local ammo_ranged_project = ammo.ranged_project or {}
......
......@@ -466,6 +466,7 @@ function _M:attackTargetWith(target, weapon, damtype, mult, force_dam)
end
-- cross-tier effect for accuracy vs. defense
--[[
local tier_diff = self:getTierDiff(atk, target:combatDefense(false, target:attr("combat_def_ct")))
if hitted and not target.dead and tier_diff > 0 then
local reapplied = false
......@@ -478,7 +479,7 @@ function _M:attackTargetWith(target, weapon, damtype, mult, force_dam)
end
target:setEffect(target.EFF_OFFGUARD, tier_diff, {}, reapplied)
end
]]
-- handle stalk targeting for hits (also handled in Actor for turn end effects)
if hitted and target ~= self then
if effStalker 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