execute as @e[type=item_display,tag=sorcerer_rc_w_w,tag=!frozen] at @s positioned ~ ~ ~ run particle falling_water ~ ~ ~ 0.5 0.5 0.5 1 10

execute as @e[type=item_display,tag=sorcerer_rc_w_w,tag=frozen] at @s positioned ~ ~ ~ run particle snowflake ~ ~ ~ 0.5 0.5 0.5 0 1

execute at @s if entity @n[type=item_display,tag=sorcerer_rc_w_w,distance=..1] if score .w_w_cd sorcerer matches ..0 run function main:characters/sorcerer/rc/id1/spells/w_w/self

execute at @e[type=item_display,tag=sorcerer_rc_w_w,tag=!frozen] positioned ~-0.5 ~-0.5 ~-0.5 as @e[type=#main:enemies,tag=enemy,dx=0] at @s run function main:characters/sorcerer/rc/id1/spells/w_w/hit

execute at @e[type=item_display,tag=sorcerer_rc_w_w,tag=frozen] positioned ~-2 ~-2 ~-2 as @e[type=#main:enemies,tag=enemy,dx=3,dz=3,dy=3] at @s run function main:characters/sorcerer/rc/id1/spells/w_w/frozen_hit

execute if score .w_w_cd sorcerer matches 1.. run scoreboard players remove .w_w_cd sorcerer 1

execute if score .w_w sorcerer matches 1.. run scoreboard players remove .w_w sorcerer 1

execute if score .w_w_frozen sorcerer matches 1.. run scoreboard players remove .w_w_frozen sorcerer 1