WoW API: GetWeaponEnchantInfo

From AddOn Studio
Revision as of 15:06, 14 October 2014 by 67.8.32.56 (talk) (Removed thrown weapon return values -- ranged weapon slot no longer exists.)
Jump to navigation Jump to search

WoW API < GetWeaponEnchantInfo

GetWeaponEnchantInfo();

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

Returns

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.