execute if score @s skill_crescent_slash matches 0 run function kiwi:enchantment_function/skill_activate_sound
execute if score @s skill_crescent_slash matches 0 run title @s actionbar {"text": "[CRESCENT SLASH]", "color": "blue", "bold": true}
execute if score @s skill_crescent_slash matches 0 run particle sweep_attack ^ ^1 ^2 1 0 1 2 1
execute if score @s skill_crescent_slash matches 0 run playsound minecraft:item.wolf_armor.damage master @a[distance=..5] ~ ~ ~ 1 0.75
execute if score @s skill_crescent_slash matches 0 as @s at @e[distance=..5,type=!player,type=!item,type=!#impact_projectiles,type=!armor_stand,type=!painting,type=!#boat,type=!item_frame,limit=1,sort=nearest] run execute as @e[distance=..4,type=!player,type=!item,type=!#impact_projectiles,type=!armor_stand,type=!painting,type=!#boat,type=!item_frame] run damage @s 15 kiwi:crescent_slash_sweep
execute if score @s skill_crescent_slash matches 0 as @s at @e[distance=..5,type=!player,type=!item,type=!#impact_projectiles,type=!armor_stand,type=!painting,type=!#boat,type=!item_frame,limit=1,sort=nearest,nbt={HurtTime:10s}] run execute at @e[distance=..4,type=!player,type=!item,type=!#impact_projectiles,type=!armor_stand,type=!painting,type=!#boat,type=!item_frame] run particle sweep_attack ~ ~1 ~ 0 0 0 3 5
execute if score @s skill_crescent_slash matches 0 run summon armor_stand ^ ^0.5 ^0.5 {NoGravity:1b,Silent:1b,DeathTime:20,Invisible:1b,Health:0f,attributes:[{id:"minecraft:max_health",base:0}],active_effects:[{id:"minecraft:wind_charged",amplifier:1,duration:20,show_particles:0b}]}
execute if score @s skill_crescent_slash matches 0 as @s at @e[distance=..5,type=!player,type=!item,type=!#impact_projectiles,type=!armor_stand,type=!painting,type=!#boat,type=!item_frame,limit=1,sort=nearest] run execute at @e[distance=..4,type=!player,type=!item,type=!#impact_projectiles,type=!armor_stand,type=!painting,type=!#boat,type=!item_frame] run particle soul_fire_flame ~ ~1 ~ 0.5 0.75 0.5 0.7 25
execute if score @s skill_crescent_slash matches 0 as @s at @e[distance=..5,type=!player,type=!item,type=!#impact_projectiles,type=!armor_stand,type=!painting,type=!#boat,type=!item_frame,limit=1,sort=nearest,nbt={HurtTime:10s}] run execute at @e[distance=..4,type=!player,type=!item,type=!#impact_projectiles,type=!armor_stand,type=!painting,type=!#boat,type=!item_frame] run particle minecraft:trial_spawner_detection_ominous ~ ~1 ~ 0 0 0 0.25 50
execute if score @s skill_crescent_slash matches ..0 run scoreboard players set @s skill_crescent_slash 600