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

Shadows do no trigger traps

git-svn-id: http://svn.net-core.org/repos/t-engine4@5621 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0900159c
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,7 @@ end
--- Called when triggered
function _M:canTrigger(x, y, who, no_random)
if who:attr("avoid_traps") then return false end
if self.pressure_trap and who:attr("avoid_pressure_traps") then return false end
if self.faction and who.reactionToward and who:reactionToward(self) >= 0 then return false end
if not no_random and who.trap_avoidance and rng.percent(who.trap_avoidance) then
......
......@@ -193,6 +193,7 @@ local function createShadow(self, level, tCallShadows, tShadowWarriors, tShadowM
level_range = {level, level},
exp_worth=0,
hate_regen = 1,
avoid_traps = 1,
max_life = resolvers.rngavg(3,12), life_rating = 5,
stats = {
......
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