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

PFFT just before a release

git-svn-id: http://svn.net-core.org/repos/t-engine4@6697 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3914ce82
No related branches found
No related tags found
No related merge requests found
......@@ -4395,7 +4395,7 @@ function _M:canBe(what)
if what == "blind" and rng.percent(100 * (self:attr("blind_immune") or 0)) then return false end
if what == "silence" and rng.percent(100 * (self:attr("silence_immune") or 0)) then return false end
if what == "disarm" and rng.percent(100 * (self:attr("disarm_immune") or 0)) then return false end
if what == "pin" and rng.percent(100 * (self:attr("pin_immune") or 0)) or self:attr("levitation") or self:attr("fly") then return false end
if what == "pin" and (rng.percent(100 * (self:attr("pin_immune") or 0)) or self:attr("levitation") or self:attr("fly")) then return false end
if what == "stun" and rng.percent(100 * (self:attr("stun_immune") or 0)) then return false end
if what == "sleep" and rng.percent(100 * math.max((self:attr("sleep_immune") or 0), (self:attr("confusion_immune") or 0))) then return false end
if what == "fear" and rng.percent(100 * (self:attr("fear_immune") or 0)) then return false 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