## Cost of End Force required to use the morph ability
## Runs in on_entry state from controller.animation.player.morph_abilities
## @s = player

execute as @s[tag=cost_for_beast_morph,m=!creative] run function morph/cost/5
execute as @s[tag=cost_for_charger_morph,m=!creative] run function morph/cost/1
#execute as @s[tag=cost_for_chef_morph,m=!creative] run function morph/cost/3
execute as @s[tag=cost_for_chiller_morph,m=!creative] run function morph/cost/3
execute as @s[tag=cost_for_gardener_morph,m=!creative] run function morph/cost/4
execute as @s[tag=cost_for_hydro_morph,m=!creative] run function morph/cost/4
execute as @s[tag=cost_for_lord_morph_summon,m=!creative] run function morph/cost/9
#execute as @s[tag=cost_for_lord_morph_beam,m=!creative] run function morph/cost/1
execute as @s[tag=cost_for_mystic_morph,m=!creative] run function morph/cost/mystic
execute as @s[tag=cost_for_scorcher_morph,m=!creative] run function morph/cost/4
execute as @s[tag=cost_for_scourge_morph,m=!creative] run function morph/cost/4
execute as @s[tag=cost_for_troll_morph,m=!creative] run function morph/cost/5
execute as @s[tag=cost_for_vanilla_morph,m=!creative] run function morph/cost/2
execute as @s[tag=cost_for_wraith_morph,m=!creative] run function morph/cost/4

event entity @s set_morph_use_to_true

function morph/cost/remove_cost_tags