The code now prevents conflicting enchantments.