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

Toxic Death will only spread to foes

git-svn-id: http://svn.net-core.org/repos/t-engine4@3447 51575b47-30f0-44d4-a5cc-537603b46e54
parent 66cdef01
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ newTalent{
for eff_id, p in pairs(target.tmp) do
local e = target.tempeffect_def[eff_id]
if e.type == "poison" and p.src == self then
for i, tgt in ipairs(possible) do if rng.percent(20 + self:getTalentLevelRaw(t) * 8) and not tgt:hasEffect(eff_id) then
for i, tgt in ipairs(possible) do if rng.percent(20 + self:getTalentLevelRaw(t) * 8) and not tgt:hasEffect(eff_id) and self:reactionToward(tgt) < 0 then
p.src = nil
local pp = table.clone(p)
pp.src = self
......
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