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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4417 51575b47-30f0-44d4-a5cc-537603b46e54
parent cbab67f4
No related branches found
No related tags found
No related merge requests found
......@@ -315,13 +315,14 @@ You have heard of such items before. They are very useful to adventurers, allowi
use = function(self, who)
if who:hasEffect(who.EFF_RECALL) then
who:removeEffect(who.EFF_RECALL)
game.logPlayer(who, "The rod emits a strange noise, glows briefly and returns to normal.")
return {id=true, used=true}
end
if not who:attr("never_move") then
if who:canBe("worldport") then
who:setEffect(who.EFF_RECALL, 40, { where = self.shertul_fortress and "shertul-fortress" or nil })
game.logPlayer(who, "Space around you starts to dissolve...")
return true
return {id=true, used=true}
elseif game.zone.force_farportal_recall then
require("engine.ui.Dialog"):yesnoLongPopup("Force a recall", "The Fortress Shadow warned you that trying to force a recall without finding the portal back could break the exploratory farportal forever.", 500, function(ret)
if not ret then
......
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