function survivalplus:finale/boss/clearphase
data merge entity @s {drop_chances:{mainhand:2f,offhand:2f}}
item replace entity @s armor.head with netherite_helmet[trim={pattern:shaper,material:netherite}]
item replace entity @s armor.chest with netherite_chestplate[trim={pattern:raiser,material:netherite}]
item replace entity @s armor.legs with netherite_leggings[trim={pattern:silence,material:netherite}]
item replace entity @s armor.feet with netherite_boots[trim={pattern:silence,material:netherite}]
attribute @s armor modifier remove 4f790e24-c0f6-4316-a880-11197606fb47
attribute @s movement_speed modifier remove d5292553-aeae-47df-8f24-1facae9df03a
attribute @s attack_knockback modifier remove 6854c560-e589-4ac9-a717-1e0bebdbacb4
execute if entity @s[predicate=!survivalplus:airmainhand] run tag @s add item_yoinked
execute if entity @s[predicate=!survivalplus:airmainhand,tag=ngboss,tag=lowhp] run schedule function survivalplus:finale/boss/cycle 4s replace
execute if entity @s[predicate=survivalplus:airmainhand] run schedule function survivalplus:finale/boss/cycle 1.5s replace

execute if entity @s[predicate=survivalplus:formless/sword] run function survivalplus:finale/boss/pacify
execute if entity @s[predicate=survivalplus:bow/bazooka] run tag @s add loading
execute if entity @s[tag=tim] run schedule function survivalplus:finale/boss/cycle 1.5s replace