Skip to content
Snippets Groups Projects
Commit becc5a6e authored by LU "helminthauge"'s avatar LU "helminthauge"
Browse files

Modifying Toxic Death a bit in the following 2 ways:

1) It will always spread Vulnerability Poison first.
2) It won't spread Stoning Poison to an enemy already stoned.
parent 4713576d
No related branches found
No related tags found
No related merge requests found
......@@ -217,9 +217,14 @@ newTalent{
self:project(tg, target.x, target.y, function(tx, ty)
local target2 = game.level.map(tx, ty, Map.ACTOR)
if not target2 or target2 == target then return end
local vul_poison = poisons.EFF_VULNERABILITY_POISON
if vul_poison then
target2:setEffect(self.EFF_VULNERABILITY_POISON, vul_poison.dur, table.clone(vul_poison))
poisons.EFF_VULNERABILITY_POISON = nil
end
for eff, p in pairs(poisons) do
game:playSoundNear(target, "creatures/jelly/jelly_hit")
if p.unresistable or target2:canBe("poison") then target2:setEffect(eff, p.dur, table.clone(p)) end
if (p.unresistable or target2:canBe("poison")) and (eff ~= target2.EFF_STONE_POISON or not target2:hasEffect(target.EFF_STONED)) then target2:setEffect(eff, p.dur, table.clone(p)) end
end
end)
target.dead = true
......
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