You can't kill dead players anymore

legacy
Jan Heemstra 2021-04-21 23:44:27 +02:00
parent 9e9ea5ef4a
commit 773331bddf
1 changed files with 3 additions and 0 deletions

View File

@ -304,6 +304,9 @@ sync func on_damage_dealt(damage, target, is_kill):
game.get_node("PlayerListContainer").update_player_list()
master func on_hit(damage, location, source):
if is_dead:
return
set_health(health - damage)
rpc("blood_splatter", location)