execute if entity @s[tag=blank] run return run playsound item.book.page_turn master @s ~ ~ ~ 1 1

execute if entity @s[tag=!sorcerer_rc] run return run tag @s add sorcerer_rc

execute store result storage sorcerer cost.e_e int 1 run scoreboard players get .e_e_cost sorcerer
execute store result storage sorcerer cost.e_l int 1 run scoreboard players get .e_l_cost sorcerer
execute store result storage sorcerer cost.l_l int 1 run scoreboard players get .l_l_cost sorcerer
execute store result storage sorcerer cost.w_e int 1 run scoreboard players get .w_e_cost sorcerer
execute store result storage sorcerer cost.w_l int 1 run scoreboard players get .w_l_cost sorcerer
execute store result storage sorcerer cost.w_w int 1 run scoreboard players get .w_w_cost sorcerer

execute if entity @s[tag=sorcerer_rc] run function main:characters/sorcerer/rc/id1/cast with storage sorcerer cost