fix dev_attack sound timing
This commit is contained in:
parent
3015971692
commit
51075bafbb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user