From eeb42c57e3f502eea846b372efb9190c749138d2 Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Thu, 2 Mar 2017 12:31:14 +0100
Subject: [PATCH] Fixed Trueshot visual bugging for some custom dolls

---
 game/modules/tome/data/timed_effects/physical.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/game/modules/tome/data/timed_effects/physical.lua b/game/modules/tome/data/timed_effects/physical.lua
index 0c6982a4d1..1b3ee85a4b 100644
--- a/game/modules/tome/data/timed_effects/physical.lua
+++ b/game/modules/tome/data/timed_effects/physical.lua
@@ -3703,6 +3703,7 @@ newEffect{
 		self:effectTemporaryValue(eff, "combat_physspeed", eff.power)
 		self:effectTemporaryValue(eff, "infinite_ammo", 1)
 		local h1x, h1y = self:attachementSpot("head", true)
+		h1x, h1y = h1x or 0, h1y or 0
 		self:effectParticles(eff, {type="circle", args={oversize=0.7, x=h1x, y=h1y-0.2, base_rot=0, a=220, shader=true, appear=12, img="true_shot_aura", speed=0, radius=0}})
 	end,
 }
-- 
GitLab