

execute as @s[scores={svm_ep.selected_ability=1,svm_ep.mana=30..}] unless entity @s[scores={svm_ep.p.lightning_ability_01_delay=1..}] unless entity @s[scores={svm_ep.using_move=1..}] run function svm_ep:power/lightning/ability/use/1
execute unless entity @s[type=player,advancements={svm_ep:unlocked_ability/lightning/2=false}] as @s[scores={svm_ep.selected_ability=7,svm_ep.mana=20..}] unless entity @s[scores={svm_ep.p.lightning_ability_07_delay=1..}] unless entity @s[scores={svm_ep.using_move=1..}] run function svm_ep:power/lightning/ability/use/7
execute unless entity @s[type=player,advancements={svm_ep:unlocked_ability/lightning/3=false}] as @s[scores={svm_ep.selected_ability=5,svm_ep.mana=10..}] unless entity @s[scores={svm_ep.p.lightning_placed_count=10..}] unless entity @s[scores={svm_ep.p.lightning_ability_05_delay=1..}] unless entity @s[scores={svm_ep.using_move=1..}] run function svm_ep:power/lightning/ability/use/5
execute unless entity @s[type=player,advancements={svm_ep:unlocked_ability/lightning/3=false}] as @s[scores={svm_ep.p.lightning_placed_count=1..,svm_ep.selected_ability=6}] unless entity @s[scores={svm_ep.p.lightning_ability_06_delay=1..}] unless entity @s[scores={svm_ep.using_move=1..}] run function svm_ep:power/lightning/ability/use/6
execute unless entity @s[type=player,advancements={svm_ep:unlocked_ability/lightning/4=false}] as @s[scores={svm_ep.selected_ability=13,svm_ep.mana=325..}] unless entity @s[scores={svm_ep.p.lightning_ability_13_delay=1..}] unless entity @s[scores={svm_ep.using_move=1..}] run function svm_ep:power/lightning/ability/use/13
execute unless entity @s[type=player,advancements={svm_ep:unlocked_ability/lightning/6=false}] as @s[scores={svm_ep.selected_ability=16,svm_ep.mana=25..}] unless entity @s[scores={svm_ep.p.lightning_ability_16_delay=1..}] unless entity @s[scores={svm_ep.using_move=1..}] run function svm_ep:power/lightning/ability/use/16
execute unless entity @s[type=player,advancements={svm_ep:unlocked_ability/lightning/7=false}] as @s[scores={svm_ep.selected_ability=17,svm_ep.mana=10..}] unless entity @s[scores={svm_ep.p.lightning_ability_17_delay=1..}] unless entity @s[scores={svm_ep.using_move=1..}] run function svm_ep:power/lightning/ability/use/17

