Commit 419c3285a6369df9baa8da821c8663b1480a5d26

Authored by DarkGod
2 parents 41cf9084 f9a505cd

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
... ... @@ -172,6 +172,8 @@ newTalent{
172 172 local dest_grid = ok_grids[#ok_grids]
173 173 if dest_grid then -- land short
174 174 if dx ~= dest_grid[1] or dy ~= dest_grid[2] then
  175 + dx = dest_grid[1]
  176 + dy = dest_grid[2]
175 177 game.logPlayer(self, "Your Disengage was partially blocked.")
176 178 end
177 179 else
... ... @@ -179,8 +181,8 @@ newTalent{
179 181 return false
180 182 end
181 183 end
182   -
183   - self:pull(dx, dy, t:_getDist(self))
  184 +
  185 + self:move(dx, dy, true)
184 186
185 187 game:onTickEnd(function()
186 188 self:setEffect(self.EFF_WILD_SPEED, 3, {power=t.getSpeed(self,t)})
... ...