Page 1 of 1

Incorrect Rush targetting

Posted: Tue Feb 26, 2013 11:56 pm
by Hachem_Muche
The Rush talent will incorrectly allow you to rush opponents you cannot reach if one of the intervening tiles has the pass_projectile flag. This is fixed with a check that you can get within melee range of the target:

Code: Select all

Index: game/modules/tome/data/talents/techniques/combat-techniques.lua
===================================================================
--- game/modules/tome/data/talents/techniques/combat-techniques.lua	(revision 6465)
+++ game/modules/tome/data/talents/techniques/combat-techniques.lua	(working copy)
@@ -56,7 +56,8 @@
 			tx, ty = lx, ly
 			lx, ly, is_corner_blocked = l:step()
 		end
-
+		if core.fov.distance(x, y, tx, ty) > 1 then return nil end
+		
 		local ox, oy = self.x, self.y
 		self:move(tx, ty, true)
 		if config.settings.tome.smooth_move > 0 then

Re: Incorrect Rush targetting

Posted: Wed Feb 27, 2013 12:00 am
by darkgod
fixed