mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-06 20:09:19 +02:00
little lua fix on killing in the name of creaturescripts
This commit is contained in:
parent
239b13bbf1
commit
6e37e1a74b
@ -115,6 +115,10 @@ function onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjus
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if mostdamagekiller == nil then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
local player = mostdamagekiller
|
local player = mostdamagekiller
|
||||||
if not mostdamagekiller:isPlayer() then
|
if not mostdamagekiller:isPlayer() then
|
||||||
local master = mostdamagekiller:getMaster()
|
local master = mostdamagekiller:getMaster()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user