WoW API: ReplaceEnchant

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API ReplaceEnchant to API ReplaceEnchant without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < ReplaceEnchant

Confirms the "Replace Enchant" dialog.

ReplaceEnchant()

Details[edit]

When the player attempts to apply an enchant or weapon buff to an item which already has one, the game presents the "Replace Enchant" dialog. This method confirms that dialog allowing the application of the enchant/buff to continue.

If this function is called before you decide which item you want to enchant (before "REPLACE_ENCHANT" event), it tries to enchant your equipped main hand weapon without confirmation.