Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns info for temporary weapon enchantments (e.g. sharpening stones).
hasMainHandEnchant, mainHandExpiration, mainHandCharges, mainHandEnchantID, hasOffHandEnchant, offHandExpiration, offHandCharges, offHandEnchantID = GetWeaponEnchantInfo()
Returns[]
- hasMainHandEnchant
- boolean - true if the weapon in the main hand slot has a temporary enchant, false otherwise
- mainHandExpiration
- number - time remaining for the main hand enchant, as thousandths of seconds
- mainHandCharges
- number - the number of charges remaining on the main hand enchant
- mainHandEnchantID
- number - ID of the main hand enchant (new in 6.0)
- hasOffHandEnchant
- boolean - true if the weapon in the secondary (off) hand slot has a temporary enchant, false otherwise
- offHandExpiration
- number - time remaining for the off hand enchant, as thousandths of seconds
- offHandCharges
- number - the number of charges remaining on the off hand enchant
- offHandEnchantID
- number - ID of the off hand enchant (new in 6.0)
Related Events[]
- UNIT_INVENTORY_CHANGED fires when (among other things) the player's temporary enchants, and thus the return values from this function, change.