diff options
Diffstat (limited to 'Effects/SlowEffect.gd')
-rw-r--r-- | Effects/SlowEffect.gd | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Effects/SlowEffect.gd b/Effects/SlowEffect.gd index 27dcc59..a3070ca 100644 --- a/Effects/SlowEffect.gd +++ b/Effects/SlowEffect.gd @@ -12,15 +12,11 @@ var magnitude: float = 0.5 : func _ready(): - if self.name != "SlowEffect" and unit.has_node("SlowEffect"): - unit.get_node("SlowEffect").set_duration(5.0) - queue_free() - else: - add() - set_duration(5.0) - duration_finished.connect(func(): - remove() - ) + add() + set_duration(5.0) + duration_finished.connect(func(): + remove() + ) func add(): |