scoreboard players operation @s magus_spell_tier_2 = @a[scores={limitbreak_chosen_class=5},limit=1,sort=random,tag=magus_casted_spell_tier_2] magus_spell_tier_2
function kiwi2:upgrades/classes/magus/spells/tier_2/tier_2_spell_cast_rotation
kill @s