From 51075bafbbfca79a9eed9a26d3da2ae39d28a3ac Mon Sep 17 00:00:00 2001 From: PeaAshMeter Date: Fri, 24 Apr 2026 05:01:51 +0300 Subject: [PATCH] fix dev_attack sound timing --- lib/spellbook.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/spellbook.lua b/lib/spellbook.lua index d4ec71b..e52e553 100644 --- a/lib/spellbook.lua +++ b/lib/spellbook.lua @@ -104,6 +104,7 @@ local attack = spell.new { Tree.behaviors.light.new { color = Vec3 { 0.6, 0.3, 0.3 }, intensity = 4 }, Tree.behaviors.positioned.new(targetCharacter:has(Tree.behaviors.positioned).position + Vec3 { 0.5, 0.5 }), } + Tree.audio:play(Tree.assets.files.audio.sounds.hurt) return task.wait { task.chain(task.tween(light:has(Tree.behaviors.light) --[[@as LightBehavior]], @@ -116,8 +117,6 @@ local attack = spell.new { } end ), - - Tree.audio:play(Tree.assets.files.audio.sounds.hurt) } } end