diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-05 11:34:49 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-05 11:34:49 +0100 |
commit | c8f674ac6fa0914d9e448d2929f2385cdad80d60 (patch) | |
tree | a913454c42bb520aa644f4e2dcf0d42ba11c83de /Effects/SlowEffect.gd | |
parent | 84365b6f901a9c0251a9f724a8d9f81a3787e97d (diff) |
next commit
Diffstat (limited to 'Effects/SlowEffect.gd')
-rw-r--r-- | Effects/SlowEffect.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Effects/SlowEffect.gd b/Effects/SlowEffect.gd index a995b7e..622a97e 100644 --- a/Effects/SlowEffect.gd +++ b/Effects/SlowEffect.gd @@ -24,10 +24,10 @@ func _ready(): func add(): - unit.get_node("Sprite2D").self_modulate = Color(0, 0, 1) + unit.sprite.self_modulate = Color(0, 0, 1) unit.speed -= unit.base_speed * magnitude func remove(): - unit.get_node("Sprite2D").self_modulate = Color(1, 1, 1) + unit.sprite.self_modulate = Color(1, 1, 1) unit.speed += unit.base_speed * magnitude |