execute unless entity @s[scores={svm_ep.using_move=1..}] run function svm_ep:power/mana_charge

scoreboard players remove @s[scores={svm_ep.mana_boost=1..}] svm_ep.mana_boost 1

execute unless score @s svm_ep.mana >= @s svm_ep.mana_max run scoreboard players add @s[scores={svm_ep.mana_charge=100..}] svm_ep.mana 1
scoreboard players remove @s[scores={svm_ep.mana_charge=100..}] svm_ep.mana_charge 100


execute as @s[scores={svm_ep.mana_drain=100..}] run function svm_ep:power/mana_drain