scoreboard players reset @s svm_ep.died
execute if score doLoseHearts svm_ep.gamerule matches 1 run scoreboard players remove @s[scores={svm_ep.health_boost=1..}] svm_ep.health_boost 1
execute if score doLoseMana svm_ep.gamerule matches 1 run scoreboard players remove @s svm_ep.mana_max 5
scoreboard players set @s[scores={svm_ep.mana_max=..100}] svm_ep.mana_max 100


function a:get_mana