execute as @e[type=block_display,tag=id1_l_l_sorcerer_rc_projectile] on passengers run kill @s
execute as @e[type=block_display,tag=id1_l_l_sorcerer_rc_projectile] run kill @s
$scoreboard players remove .mana sorcerer $(mana)
scoreboard players add .l_l_cost sorcerer 20
scoreboard players remove .w_e_cost sorcerer 20
scoreboard players remove .w_l_cost sorcerer 20
scoreboard players remove .w_w_cost sorcerer 20
scoreboard players remove .e_l_cost sorcerer 20
scoreboard players remove .e_e_cost sorcerer 20
data modify storage sorcerer last set value "l_l"

playsound atmos:shock_1 master @a ~ ~ ~ 0.2 1
playsound item.trident.riptide_1 master @a ~ ~ ~ 2 2

tag @e[type=#main:enemies,tag=enemy,tag=sorcerer_rc_l_l_hit] remove sorcerer_rc_l_l_hit

function main:mechanics/damage/enemy/calculation {"id":id1_l_l,"character":sorcerer,"type":"rc","damage":80,"stat":"MTC","local_bonus":0,"indicator":4}

execute at @s anchored eyes run function main:mechanics/projectile/projectile_item_display {"id":id1_l_l,"character":sorcerer,"type":rc,"distance":200,"texture":"weapons/sorcerer/l_l","size":"1f,1f,1f","translation":"0f,0f,0f","x":"~","y":"~","angle_1":"~","angle_2":"~","pierce":1,"spin":',"spin"',"rotation":"0"}

execute as @e[type=block_display,tag=id1_l_l_sorcerer_rc_projectile,tag=!sent] run scoreboard players set @s sorcerer 0
execute as @e[type=block_display,tag=id1_l_l_sorcerer_rc_projectile,tag=!sent] run tag @s add sent

$execute unless score .0 number matches $(mana) run function main:characters/sorcerer/rc/id1/spells/clear