miroir de
https://github.com/sys4-fr/server-nalc.git
synchronisé 2025-10-28 19:35:17 +01:00
fixed crash if mobs attack and player leave
Cette révision appartient à :
@@ -961,6 +961,7 @@ end
|
||||
|
||||
local s = self.object:getpos()
|
||||
local p = self.attack.player:getpos()
|
||||
if not s or not p then return end
|
||||
p.y = p.y - .5
|
||||
s.y = s.y + .5
|
||||
local dist = ((p.x - s.x) ^ 2 + (p.y - s.y) ^ 2 + (p.z - s.z) ^ 2) ^ 0.5
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur