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

fix

parent 818cec8e
No related branches found
No related tags found
No related merge requests found
...@@ -689,7 +689,7 @@ function _M:attackTargetWith(target, weapon, damtype, mult, force_dam) ...@@ -689,7 +689,7 @@ function _M:attackTargetWith(target, weapon, damtype, mult, force_dam)
if hitted and crit and weapon and self:knowTalent(self.T_ARCANE_DESTRUCTION) then if hitted and crit and weapon and self:knowTalent(self.T_ARCANE_DESTRUCTION) then
local chance = 100 local chance = 100
if self:hasShield() then chance = 75 if self:hasShield() then chance = 75
elseif self:hasDualWeapon() then chance = 50 end elseif self:hasDualWeapon() then chance = 50
end end
if rng.percent(chance) then if rng.percent(chance) then
local typ = rng.table{{DamageType.FIRE,"ball_fire"}, {DamageType.LIGHTNING,"ball_lightning_beam"}, {DamageType.ARCANE,"ball_arcane"}} local typ = rng.table{{DamageType.FIRE,"ball_fire"}, {DamageType.LIGHTNING,"ball_lightning_beam"}, {DamageType.ARCANE,"ball_arcane"}}
......
...@@ -32,7 +32,7 @@ newTalent{ ...@@ -32,7 +32,7 @@ newTalent{
if self.x == target.x and self.y == target.y then return nil end if self.x == target.x and self.y == target.y then return nil end
local chance = t.getChance(self, t) local chance = t.getChance(self, t)
if self:hasShield() then chance = chance * 0.75 end if self:hasShield() then chance = chance * 0.75
elseif self:hasDualWeapon() then chance = chance * 0.5 elseif self:hasDualWeapon() then chance = chance * 0.5
end end
......
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