Skip to content
Snippets Groups Projects
Commit e33f275c authored by Chris Davidson's avatar Chris Davidson
Browse files

- Increase radius on Toxic Death and make it always spread

parent 50f8babf
1 merge request!387Rogue misc
...@@ -105,14 +105,13 @@ newTalent{ ...@@ -105,14 +105,13 @@ newTalent{
points = 5, points = 5,
mode = "passive", mode = "passive",
require = cuns_req2, require = cuns_req2,
getRadius = function(self, t) return math.floor(self:combatTalentLimit(t, 10, 1, 2.7)) end, getRadius = function(self, t) return math.floor(self:combatTalentLimit(t, 10, 1, 5)) end,
getChance = function(self, t) return self:combatTalentLimit(t, 50, 10, 25) end,
on_kill = function(self, t, target) on_kill = function(self, t, target)
local poisons = {} local poisons = {}
local to_spread = 0 local to_spread = 0
for k, v in pairs(target.tmp) do for k, v in pairs(target.tmp) do
local e = target.tempeffect_def[k] local e = target.tempeffect_def[k]
if e.subtype.poison and v.src == self and rng.percent(t.getChance(self, t)) then if e.subtype.poison and v.src == self then
print("[Toxic Death] spreading poison", k, target.x, target.y) print("[Toxic Death] spreading poison", k, target.x, target.y)
poisons[k] = target:copyEffect(k) poisons[k]._from_toxic_death = true poisons[k] = target:copyEffect(k) poisons[k]._from_toxic_death = true
to_spread = to_spread + 1 to_spread = to_spread + 1
...@@ -135,7 +134,7 @@ newTalent{ ...@@ -135,7 +134,7 @@ newTalent{
end end
end, end,
info = function(self, t) info = function(self, t)
return ([[When you kill a creature, all of your poisons affecting it will have a %d%% chance to spread to foes in a radius of %d.]]):format(t.getChance(self, t), t.getRadius(self, t)) return ([[When you kill a creature, all of your poisons affecting it will spread to foes in a radius of %d.]]):format(t.getRadius(self, t))
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