tag @s add executor

scoreboard players add @s svm_ep.lightning_flash_length 6
scoreboard players add @s[tag=svm_ep.lightning_user] svm_ep.lightning_flash_length 7
scoreboard players add @s[scores={svm_ep.fighting_style=1},nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.katana:1b}}}}] svm_ep.lightning_flash_length 4

execute at @s run playsound minecraft:entity.lightning_bolt.thunder master @a[distance=..30] ~ ~ ~ 0.25 1.4
execute at @s run playsound minecraft:item.trident.thunder master @a[distance=..30] ~ ~ ~ 0.25 0.7

execute at @s run particle minecraft:flash ~ ~0.7 ~ 0.7 0.7 0.7 0.4 3
execute at @s anchored eyes positioned ^ ^ ^ run function svm_ep:items/power_ability/lightning_flash/raycast
execute at @s run particle minecraft:flash ~ ~0.7 ~ 0.7 0.7 0.7 0.4 3


scoreboard players remove @s svm_ep.mana 40
scoreboard players add @s svm_ep.used_move 120
tag @s remove executor
