Browse Source

Make unmerge always in the same location

master
Luna 7 years ago
parent
commit
09057a2bcf
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      scripts/heroes/3.gd

+ 4
- 1
scripts/heroes/3.gd View File

@ -83,6 +83,9 @@ sync func merge(node_name):
sync func unmerge():
if merged:
set_boosting(false)
set_boosted(merged, false)
set_boosting(false)
var pos = merged.get_translation()
pos.z += 1
set_translation(pos)
merged = null

Loading…
Cancel
Save