Commit f9a505cd4a89d613fde045678a4a311da10bef75

Authored by yutio888
1 parent e55013c9

fix disengage not springing over creatures

... ... @@ -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)})
... ...