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

Spacial Tether correctly works with duration increase/reduction of the effect

parent be1f34c7
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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
......
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