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

Creatures that levitate can not be pinned

git-svn-id: http://svn.net-core.org/repos/t-engine4@3265 51575b47-30f0-44d4-a5cc-537603b46e54
parent 353820ac
No related branches found
No related tags found
No related merge requests found
......@@ -2364,7 +2364,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)) then return false end
if what == "pin" and rng.percent(100 * (self:attr("pin_immune") or 0)) and not self:("levitation") then return false end
if what == "stun" and rng.percent(100 * (self:attr("stun_immune") or 0)) then return false end
if what == "fear" and rng.percent(100 * (self:attr("fear_immune") or 0)) then return false end
if what == "knockback" and (rng.percent(100 * (self:attr("knockback_immune") or 0)) or self:attr("never_move")) 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