From c084292744971938e4381a6c1a73fa4420d0bc60 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Tue, 6 Sep 2011 23:05:15 +0000
Subject: [PATCH] bleh

git-svn-id: http://svn.net-core.org/repos/t-engine4@4346 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/data/talents/spells/staff-combat.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game/modules/tome/data/talents/spells/staff-combat.lua b/game/modules/tome/data/talents/spells/staff-combat.lua
index b9ef62e6f3..55099fa278 100644
--- a/game/modules/tome/data/talents/spells/staff-combat.lua
+++ b/game/modules/tome/data/talents/spells/staff-combat.lua
@@ -44,7 +44,7 @@ newTalent{
 					local dist = core.fov.distance(typ.source_actor.x, typ.source_actor.y, lx, ly)
 					if math.floor(dist - typ.range + 0.5) > 0 then block_from_range = true end
 				end
-				if a then return block_from_range or self:reactionToward(a) < 0, hit, hit_radius
+				if a then return block_from_range or (self and self:reactionToward(a) < 0), hit, hit_radius
 				else return block, hit, hit_radius end
 			end,
 		}
-- 
GitLab