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

Merge branch 'otowakotori/t-engine4-tether-fix'

parents 517a8dcb 6fe7cf25
No related branches found
No related tags found
No related merge requests found
......@@ -302,7 +302,11 @@ newTalent{
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
if self.x == tether.x and self.y == tether.y then
self.temporary = tether.dur
else
self.temporary = math.min(self.temporary or 0, tether.dur)
end
end
if game.level and game.level:hasEntity(target) and tether and trigger and not target.dead then
......@@ -388,6 +392,7 @@ newTalent{
local radius = self:getTalentRadius(t)
return ([[Tether the target to the location for %d turns.
Each turn the target has a %d%% chance per tile it's travelled away from the tether to be teleported back, inflicting %0.2f physical and %0.2f temporal (warp) damage to all enemies in a radius of %d at both the entrance and exit locations.
If the target has already been tethered, it will also be tethered to the new location. The old tether still exists and can function normally, but cannot be extended by any means.
The damage will scale with your Spellpower.]])
:tformat(duration, chance, damDesc(self, DamageType.PHYSICAL, damage), damDesc(self, DamageType.TEMPORAL, damage), radius)
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