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

Merge branch 'fix_disengage' into 'master'

fix disengage not springing over creatures

Due to a recent bugfix commit making Disengage not to move through walls, now Disengage cannot springing over the creatures too, which is inconsistent with the talent description. This commit will allow Disengage to spring over creatures again while blocked by walls.

See merge request !735
parents 41cf9084 f9a505cd
No related branches found
No related tags found
1 merge request!735fix disengage not springing over creatures
Pipeline #
......@@ -172,6 +172,8 @@ newTalent{
local dest_grid = ok_grids[#ok_grids]
if dest_grid then -- land short
if dx ~= dest_grid[1] or dy ~= dest_grid[2] then
dx = dest_grid[1]
dy = dest_grid[2]
game.logPlayer(self, "Your Disengage was partially blocked.")
end
else
......@@ -179,8 +181,8 @@ newTalent{
return false
end
end
self:pull(dx, dy, t:_getDist(self))
self:move(dx, dy, true)
game:onTickEnd(function()
self:setEffect(self.EFF_WILD_SPEED, 3, {power=t.getSpeed(self,t)})
......
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