Browse Source

Fix players losing color on re-spawn

master
Luna 7 years ago
parent
commit
590e34c8ed
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      scripts/player.gd

+ 1
- 0
scripts/player.gd View File

@ -256,6 +256,7 @@ sync func switch_hero(hero):
get_node("/root/Level/Players").call_deferred("add_child", new_hero)
# We must wait until after _ready is called, so that we don't end up at spawn
new_hero.call_deferred("set_status", get_status())
new_hero.call_deferred("begin")
queue_free()
func _exit_tree():


Loading…
Cancel
Save