fix dev_attack sound timing

This commit is contained in:
PeaAshMeter 2026-04-24 05:01:51 +03:00
parent 149432e699
commit fd47ada751

View File

@ -103,6 +103,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]],
@ -114,8 +115,6 @@ local attack = spell.new {
}
end
),
Tree.audio:play(Tree.assets.files.audio.sounds.hurt)
}
}
end