execute store result storage untwo:temp Team_DM.IntID int 1 run scoreboard players get @s untwo.PlayerID
execute if predicate untwo:team/any_enchant/head run data modify storage untwo:temp Team_DM.replace.slot set value "armor.head"
execute if predicate untwo:team/any_enchant/chest run data modify storage untwo:temp Team_DM.replace.slot set value "armor.chest"
execute if predicate untwo:team/any_enchant/legs run data modify storage untwo:temp Team_DM.replace.slot set value "armor.legs"
execute if predicate untwo:team/any_enchant/feet run data modify storage untwo:temp Team_DM.replace.slot set value "armor.feet"
execute if predicate untwo:team/any_enchant/offhand run data modify storage untwo:temp Team_DM.replace.slot set value "weapon.offhand"
function untwo:team/immunity/sys/replace/w_enchant/set/