Hero fury crash fixed

This commit is contained in:
Giov4 2022-11-10 21:07:12 +01:00
parent 959edacf92
commit 9454c07488

View File

@ -183,7 +183,7 @@ local forward_punch = {
function forward_punch:on_activate(pl_name, dtime_s)
if pl_name ~= "" then
local hero_fury = pl_name:get_skill("fbrawl:hero_fury")
local hit_player = hero_fury.data.hit_player
local hit_player = minetest.get_player_by_name(hero_fury.data.hit_player_name)
local player = minetest.get_player_by_name(pl_name)
local obj = self.object