execute if entity @a[scores={limitbreak_chosen_class=3}] as @a[scores={limitbreak_chosen_class=3}] if predicate kiwi2:holding_ranged_weapons at @s if score @s hunters_mastery_level_current matches 1 run enchant @s kiwi:hunters_mastery 1
execute if entity @a[scores={limitbreak_chosen_class=3}] as @a[scores={limitbreak_chosen_class=3}] if predicate kiwi2:holding_ranged_weapons at @s store result score @s hunters_mastery_level_held run data get entity @s SelectedItem.components."minecraft:enchantments".levels."kiwi:hunters_mastery"

execute if entity @a[scores={limitbreak_chosen_class=3}] as @a[scores={limitbreak_chosen_class=3}] if predicate kiwi2:holding_ranged_weapons at @s if score @s hunters_mastery_level_held < @s hunters_mastery_level_current run item modify entity @s weapon.mainhand kiwi2:hunter_mastery_upgrade

execute as @a[tag=hunter_power_shot_active] at @s run function kiwi2:upgrades/classes/hunter/hunter_power_shot_fx
execute as @a[tag=hunter_quick_shot_active] at @s run function kiwi2:upgrades/classes/hunter/hunter_quick_shot_tick