#execute as @s at @e[c=1,family=super_kick,type=wesl3y:gojo_damage] run function jujutsu_kaisen/gojo/super_kick
#execute as @s at @e[c=1,family=blue4,type=wesl3y:gojo_damage] run function jujutsu_kaisen/gojo/blue
#execute as @s at @e[c=1,family=red,type=wesl3y:gojo_damage] run function jujutsu_kaisen/gojo/red

scoreboard players set @s[tag=jinwoo_stealth,scores={wg:skill_loop=..1}] wg:cooldown 50
tag @s[tag=jinwoo_stealth,scores={wg:skill_loop=..1}] remove jinwoo_stealth
tag @s[tag=jinwoo_bloodlust,scores={wg:skill_loop2=..1}] remove jinwoo_bloodlust


#Stealth
event entity @s[tag=jinwoo_stealthCt,scores={wg:cutscene=..1}] wesl3y:skill0
camera @s[tag=jinwoo_stealthCt,scores={wg:cutscene=..1}] clear
tag @s[tag=jinwoo_stealthCt,scores={wg:cutscene=..1}] remove jinwoo_stealthCt
scoreboard players set @s[tag=jinwoo_stealthCt,scores={wg:cutscene=30}] wg:skill_loop 100
tag @s[tag=jinwoo_stealthCt,scores={wg:cutscene=30}] add jinwoo_stealth
camera @s[tag=jinwoo_stealthCt,scores={wg:cutscene=50}] set example:example_free ease 2.0 linear pos ^^1.5^2.5 rot ~7.5~180
execute at @s[tag=jinwoo_stealthCt,scores={wg:cutscene=50}] run playsound jinwoo_stealth @a[r=15]
event entity @s[tag=jinwoo_stealthCt,scores={wg:cutscene=60}] wesl3y:skill4
camera @s[tag=jinwoo_stealthCt,scores={wg:cutscene=60}] set example:example_free ease 0.2 linear pos ^^1.5^1.5 rot ~5~180

#Bloodlust
playanimation @s[tag=jinwoo_bloodlust] animation.jinwoo.attack5 wesl3y
event entity @s[tag=jinwoo_bloodCt,scores={wg:cutscene=..1}] wesl3y:skill0
camera @s[tag=jinwoo_bloodCt,scores={wg:cutscene=..1}] clear
execute at @s[tag=jinwoo_bloodCt,scores={wg:cutscene=..1}] run effect @e[rm=0.1,r=20] slowness 5 255 true
scoreboard players set @s[tag=jinwoo_bloodCt,scores={wg:cutscene=..1}] wg:cooldown2 70
tag @s[tag=jinwoo_bloodCt,scores={wg:cutscene=..1}] remove jinwoo_bloodCt
scoreboard players set @s[tag=jinwoo_bloodCt,scores={wg:cutscene=50}] wg:skill_loop2 100
tag @s[tag=jinwoo_bloodCt,scores={wg:cutscene=50}] add jinwoo_bloodlust
execute at @s[tag=jinwoo_bloodCt,scores={wg:cutscene=50}] run particle wesl3y:jinwoo_bloodlust4
execute at @s[tag=jinwoo_bloodCt,scores={wg:cutscene=50}] run particle wesl3y:jinwoo_bloodlust4
camera @s[tag=jinwoo_bloodCt,scores={wg:cutscene=65}] set example:example_free ease 4.5 linear pos ^^0.5^4 rot ~-10~180
execute at @s[tag=jinwoo_bloodCt,scores={wg:cutscene=65}] run particle wesl3y:jinwoo_bloodlust3 ^^^-2
execute at @s[tag=jinwoo_bloodCt,scores={wg:cutscene=70}] run playsound jinwoo_bloodlust @a[r=15]
event entity @s[tag=jinwoo_bloodCt,scores={wg:cutscene=80}] wesl3y:skill5
execute at @s[tag=jinwoo_bloodCt,scores={wg:cutscene=80}] run particle wesl3y:jinwoo_bloodlust4
execute at @s[tag=jinwoo_bloodCt,scores={wg:cutscene=80}] run particle wesl3y:jinwoo_bloodlust4
camera @s[tag=jinwoo_bloodCt,scores={wg:cutscene=80}] set example:example_free ease 0.1 linear pos ^^1.5^1 rot ~5~180
execute at @s[tag=jinwoo_bloodCt,scores={wg:cutscene=80}] run effect @e[rm=0.1,r=25] slowness 5 255 true

#Igris
event entity @s[tag=jinwoo_igrisCt,scores={wg:cutscene=..1}] wesl3y:skill0
camera @s[tag=jinwoo_igrisCt,scores={wg:cutscene=..1}] clear
scoreboard players set @s[tag=jinwoo_igrisCt,scores={wg:cutscene=..1}] wg:cooldown3 300
tag @s[tag=jinwoo_igrisCt,scores={wg:cutscene=..1}] remove jinwoo_igrisCt
execute at @s at @e[type=wesl3y:igris_tamed,c=1,r=7] run camera @p[tag=jinwoo_igrisCt,scores={wg:cutscene=70}] set example:example_free ease 2.0 linear pos ^-2^1.5^2 rot ~7.5~230
execute at @s[tag=jinwoo_igrisCt,scores={wg:cutscene=80}] run particle wesl3y:jinwoo_bloodlust4
execute at @s[tag=jinwoo_igrisCt,scores={wg:cutscene=80}] run particle wesl3y:jinwoo_bloodlust4
event entity @s[tag=jinwoo_igrisCt,scores={wg:cutscene=80}] wesl3y:jinwoo.igris
event entity @s[tag=jinwoo_igrisCt,scores={wg:cutscene=100}] wesl3y:skill6
camera @s[tag=jinwoo_igrisCt,scores={wg:cutscene=100}] set example:example_free ease 0.2 linear pos ^^1.5^1 rot ~5~180

tp @s[tag=cutscene] ^^^ ~ 0
scoreboard players remove @s[tag=cutscene] wg:cutscene 1