API GetWeaponEnchantInfo

104,545pages on
this wiki
Add New Page
Add New Page Talk0
WoW API < GetWeaponEnchantInfo


This appears to be used for handling TEMPORARY enchants to weapons - like POISONS. Also appears to be self-only.


hasMainHandEnchant, mainHandExpiration, mainHandCharges, mainHandEnchantID, hasOffHandEnchant, offHandExpiration, offHandCharges, offHandEnchantId = GetWeaponEnchantInfo();

hasMainHandEnchant = 1 (true) or nil
mainHandExpiration = time remaining as thousandths of seconds
mainHandCharges = charges remaining
mainHandEnchantID = the spell ID of the main hand enchantment (new in 6.0)
hasOffHandEnchant = 1 (true) or nil
offHandExpiration = time remaining as thousandths of seconds
offHandCharges = charges remaining
offHandEnchantID = the spell ID of the off hand enchantment (new in 6.0)

Reference the default interface BuffFrame.Lua for its usage.

Also on Fandom

Random Wiki