From 78507aeac133780300eced93e02fcbdef4def42b Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Wed, 30 Jun 2010 13:35:24 +0000 Subject: [PATCH] dont allow jumpgate to work between levels git-svn-id: http://svn.net-core.org/repos/t-engine4@869 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/data/talents/divine/twilight.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/game/modules/tome/data/talents/divine/twilight.lua b/game/modules/tome/data/talents/divine/twilight.lua index 0a035693d1..ea26d9b7c4 100644 --- a/game/modules/tome/data/talents/divine/twilight.lua +++ b/game/modules/tome/data/talents/divine/twilight.lua @@ -56,6 +56,10 @@ newTalent{ game.logPlayer(self, "You must sustain the Jumpgate spell to be able to teleport.") return end + if eff.jumpgate_level ~= game.zone.short_name .. "-" .. game.level.level then + game.logPlayer(self, "The destination is too far away.") + return + end game.level.map:particleEmitter(self.x, self.y, 1, "teleport") self:teleportRandom(eff.jumpgate_x, eff.jumpgate_y, 1) game.level.map:particleEmitter(eff.jumpgate_x, eff.jumpgate_y, 1, "teleport") @@ -96,6 +100,7 @@ newTalent{ local ret = { jumpgate_x = game.player.x, jumpgate_y = game.player.y, + jumpgate_level = game.zone.short_name .. "-" .. game.level.level, particle = self:addParticles(Particles.new("time_shield", 1)) } return ret -- GitLab