Lore archive · Warcraft Wiki, 2023 dump
API GetWeaponEnchantInfo
Last wiki revision 2022-07-21
Returns info for temporary weapon enchantments (e.g. sharpening stones). hasMainHandEnchant, mainHandExpiration, mainHandCharges, mainHandEnchantID, hasOffHandEnchant, offHandExpiration, offHandCharges, offHandEnchantID = GetWeaponEnchantInfo
- hasMainHandEnchant: - true if the weapon in the main hand slot has a temporary enchant, false otherwise
- mainHandExpiration: - time remaining for the main hand enchant, as thousandths of seconds
- mainHandCharges: - the number of charges remaining on the main hand enchant
- mainHandEnchantID: - ID of the main hand enchant (new in 6.0)
- hasOffHandEnchant: - true if the weapon in the secondary (off) hand slot has a temporary enchant, false otherwise
- offHandExpiration: - time remaining for the off hand enchant, as thousandths of seconds
- offHandCharges: - the number of charges remaining on the off hand enchant
- offHandEnchantID: - ID of the off hand enchant (new in 6.0)
- fires when (among other things) the player's temporary enchants, and thus the return values from this function, change.
Source
https://warcraft.wiki.gg/wiki/API_GetWeaponEnchantInfo · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.