execute if entity @s[nbt={SelectedItem:{components:{"minecraft:enchantments":{levels:{"kiwi:magus_wand_tier_1":1}}}}},advancements={kiwi2:magus_change_spell=true}] run function kiwi2:upgrades/classes/magus/spells/check_spell_tier_1
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:enchantments":{levels:{"kiwi:magus_wand_tier_2":1}}}}},advancements={kiwi2:magus_change_spell=true}] run function kiwi2:upgrades/classes/magus/spells/check_spell_tier_2
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:enchantments":{levels:{"kiwi:magus_wand_tier_3":1}}}}},advancements={kiwi2:magus_change_spell=true}] run function kiwi2:upgrades/classes/magus/spells/check_spell_tier_3
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:enchantments":{levels:{"kiwi:magus_wand_tier_4":1}}}}},advancements={kiwi2:magus_change_spell=true}] run function kiwi2:upgrades/classes/magus/spells/check_spell_tier_4

execute if entity @s[nbt={SelectedItem:{components:{"minecraft:enchantments":{levels:{"kiwi:magus_wand_tier_1":1}}}}},advancements={kiwi2:magus_change_spell_2=true}] run function kiwi2:upgrades/classes/magus/spells/check_spell_tier_1
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:enchantments":{levels:{"kiwi:magus_wand_tier_2":1}}}}},advancements={kiwi2:magus_change_spell_2=true}] run function kiwi2:upgrades/classes/magus/spells/check_spell_tier_2
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:enchantments":{levels:{"kiwi:magus_wand_tier_3":1}}}}},advancements={kiwi2:magus_change_spell_2=true}] run function kiwi2:upgrades/classes/magus/spells/check_spell_tier_3
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:enchantments":{levels:{"kiwi:magus_wand_tier_4":1}}}}},advancements={kiwi2:magus_change_spell_2=true}] run function kiwi2:upgrades/classes/magus/spells/check_spell_tier_4
