From 2f9bf54093253828f55da56d0412a32e475c0235 Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Wed, 6 Nov 2013 17:03:55 +0100
Subject: [PATCH] paranoia

---
 game/modules/tome/data/general/objects/egos/staves.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/game/modules/tome/data/general/objects/egos/staves.lua b/game/modules/tome/data/general/objects/egos/staves.lua
index 1cba138bba..228b889b73 100644
--- a/game/modules/tome/data/general/objects/egos/staves.lua
+++ b/game/modules/tome/data/general/objects/egos/staves.lua
@@ -348,7 +348,9 @@ newEntity{
 		function(self, who)
 			local tg = {type="ball", range=0, radius=self.material_level + 1, selffire=false}
 			local weapon = who:hasStaffWeapon()
+			if not weapon then return end
 			local combat = weapon.combat
+			if not combat then return end
 
 			local DamageType = require "engine.DamageType"
 			local damtype = combat.damtype
-- 
GitLab