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

Fearscape is usable in more zones

git-svn-id: http://svn.net-core.org/repos/t-engine4@4878 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1520833b
No related branches found
No related tags found
No related merge requests found
......@@ -3144,7 +3144,8 @@ function _M:canBe(what)
if what == "stone" and rng.percent(100 * (self:attr("stone_immune") or 0)) then return false end
if what == "instakill" and rng.percent(100 * (self:attr("instakill_immune") or 0)) then return false end
if what == "teleport" and (rng.percent(100 * (self:attr("teleport_immune") or 0)) or self:attr("encased_in_ice")) then return false end
if what == "worldport" and game.level.data and game.level.data.no_worldport then return false end
if what == "worldport" and game.level and game.level.data and game.level.data.no_worldport then return false end
if what == "planechange" and game.level and game.level.data and game.level.data.no_planechange then return false end
if what == "summon" and self:attr("suppress_summon") then return false end
return true
end
......
......@@ -131,12 +131,13 @@ newTalent{
random_boss_rarity = 10,
tactical = { DISABLE = 3 },
range = 5,
on_pre_use = function(self, t) return self:canBe("planechange") end,
activate = function(self, t)
if game.zone.is_demon_plane then
game.logPlayer(self, "This spell can not be used from within the Fearscape.")
return
end
if not self:canBe("worldport") then
if not self:canBe("planechange") then
game.logPlayer(self, "The spell fizzles...")
return
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