From 6e37e1a74bfbd694f92c616295b874c692f7056d Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Sat, 17 Apr 2021 13:42:59 +0300 Subject: [PATCH] little lua fix on killing in the name of creaturescripts --- data/creaturescripts/scripts/killing_in_the_name_of.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/creaturescripts/scripts/killing_in_the_name_of.lua b/data/creaturescripts/scripts/killing_in_the_name_of.lua index 1320ff2..fd7102c 100644 --- a/data/creaturescripts/scripts/killing_in_the_name_of.lua +++ b/data/creaturescripts/scripts/killing_in_the_name_of.lua @@ -115,6 +115,10 @@ function onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjus return true end + if mostdamagekiller == nil then + return true + end + local player = mostdamagekiller if not mostdamagekiller:isPlayer() then local master = mostdamagekiller:getMaster()