Greater Mending restores or repairs magical and complex objects no larger than five feet in any direction. For example, you may spend one minute to repair a grandfather clock, reform the rudder of a ship, restore a broken lock, or a similar repair. Additionally, you may spend 8 hours concentrating on Greater Mending to repair a magic item in the same way and return the enchantment to the item.
If the Magic Item is of Rare rarity or lower, the magic item is restored. If the nature of the enchantment is of a Very Rare rarity or higher, make an ability check using your spellcasting modifier. The DC is 18 for Very Rare items, 22 for Legendary Items, and 26 for Artifacts. If you fail this ability check, the item cannot be repaired again in this way for 1 year.
At Higher levels, when you cast this spell at 5th level or higher, the maximum rarity for an automatic success on a magic item increases by 1 for every 2 levels above 5th, and the size of the object increases by an additional 5 feet.
*Credit to Ink & Lyre - @inkandlyre
Comments