Incorrect Rush targetting

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Incorrect Rush targetting

#1 Post 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
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Incorrect Rush targetting

#2 Post by darkgod »

fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply