Skip to content
Snippets Groups Projects
Commit e117b6cf authored by DarkGod's avatar DarkGod
Browse files

sanity check

parent dee468f5
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ function _M:canTrigger(x, y, who, no_random)
-- used for wormholes and any other self-buff style of trap
if self.beneficial_trap and self.faction and who.reactionToward and who:reactionToward(self) >= 0 then return true end
if rng.percent(5) then
if rng.percent(5) and not self.beneficial_trap then
if self:knownBy(who) then game.logPlayer(who, "You somehow avoid the trap (%s).", self:getName()) end
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