nil check for poisoned
This commit is contained in:
parent
d0c0e4c78a
commit
ed153b9e60
3
init.lua
3
init.lua
@ -276,7 +276,8 @@ end
|
|||||||
player:set_hp(hp, {poison = true})
|
player:set_hp(hp, {poison = true})
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif stamina.players[name].poisoned then
|
elseif stamina.players[name]
|
||||||
|
and stamina.players[name].poisoned then
|
||||||
|
|
||||||
player:hud_change(stamina.players[name].hud_id,
|
player:hud_change(stamina.players[name].hud_id,
|
||||||
"text", "stamina_hud_fg.png")
|
"text", "stamina_hud_fg.png")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user