Hello, I recently created custom armor for a server. It works perfectly fine when it's not enchanted. However, when I enchant it the script completely stops working and it acts as if it's just regular leather armor. I can't see why this would happen.
My skript:
Thank you for helping.
My skript:
Code:
on damage:
if victim is a player:
set {_damage} to damage
if victim is wearing leather chestplate named "&5Dragon Chestplate":
set damage to ({_damage}*0.55)
add -100 to victim's chestplate's durability
Thank you for helping.