API GetWeaponEnchantInfo

Returns information about the player's current temporary enchants, such as shaman weapon imbues, rogue poisons, and warlock spellstones.

hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges, hasThrownEnchant, thrownExpiration, thrownCharges = GetWeaponEnchantInfo

Returns

 * hasMainHandEnchant : Flag - 1 if the weapon in the main hand slot has a temporary enchant, nil 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
 * hasOffHandEnchant : Flag - 1 if the weapon in the secondary (off) hand slot has a temporary enchant, nil 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
 * hasThrownEnchant : Flag - 1 if the weapon in the ranged slot has a temporary enchant, nil otherwise (new in 4.0.1)
 * thrownExpiration : Number - time remaining for the ranged enchant, as thousandths of seconds (new in 4.0.1)
 * thrownCharges : Number - the number of charges remaining on the ranged enchant (new in 4.0.1)

Related Events

 * fires when (among other things) the player's temporary enchants, and thus the return values from this function, change.

ru:???????:?????? ? ???????? API/??????????????? ????????