From e833d4d0435f1c00f09ecbe24363218ee5e05c51 Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Sun, 29 Dec 2019 19:28:43 +0100
Subject: [PATCH] Spacial Tether correctly works with duration
 increase/reduction of the effect

---
 .../tome/data/talents/chronomancy/spacetime-folding.lua      | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/data/talents/chronomancy/spacetime-folding.lua b/game/modules/tome/data/talents/chronomancy/spacetime-folding.lua
index 50a50b5a7b..419d2d861f 100644
--- a/game/modules/tome/data/talents/chronomancy/spacetime-folding.lua
+++ b/game/modules/tome/data/talents/chronomancy/spacetime-folding.lua
@@ -301,8 +301,11 @@ newTalent{
 				local tether = target:hasEffect(target.EFF_BEN_TETHER) or target:hasEffect(target.EFF_DET_TETHER)
 				local trigger = rng.percent(self.chance * core.fov.distance(self.x, self.y, target.x, target.y))
 				
+				if game.level and game.level:hasEntity(target) and tether and not target.dead then
+					self.temporary = tether.dur
+				end
+
 				if game.level and game.level:hasEntity(target) and tether and trigger and not target.dead then
-				
 					-- Primary blast, even if the teleport is resisted or fails this triggers
 
 					local tg = self.tg
-- 
GitLab