fix dev_attack sound timing

This commit is contained in:
PeaAshMeter 2026-04-24 05:01:51 +03:00 committed by neckrat
parent 3015971692
commit 51075bafbb

View File

@ -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