feature/task-tweens #30

Merged
PeaAshMeter merged 9 commits from feature/task-tweens into main 2026-02-12 00:07:35 +03:00
Showing only changes of commit 78776ec0dd - Show all commits

View File

@ -99,8 +99,17 @@ function regenerateMana:cast(caster, target)
Tree.behaviors.positioned.new(caster:has(Tree.behaviors.positioned).position + Vec3 { 0.5, 0.5 }), Tree.behaviors.positioned.new(caster:has(Tree.behaviors.positioned).position + Vec3 { 0.5, 0.5 }),
} }
local flash = function(callback)
light:has(Tree.behaviors.light):animateColor(Vec3 {})(
function()
light:die()
callback()
end
)
end
return task.wait { return task.wait {
light:has(Tree.behaviors.light):animateColor(Vec3 {}), flash,
sprite:animate("hurt") sprite:animate("hurt")
} }
end end