Ring Enchant not parsed or ignored #13


  • New
  • Defect
Open
Assigned to whitetooth3
  • Indemnity83 created this issue Apr 20, 2011

    This may apply to other situations as well, but in the case of Enchant Ring - Intellect which +40 Intellect, but requires the player to be 475 Enchanting to be active the enchant will show on the item, but LibStatLogic seems to ignore it. At least in the case where the player is not 475 Enchanting, I am unable to test a case where the stat is active.

    Sample Code:

    -- Pick a ring, any ring. 
    --      this one happens to be the Band of Secrent Names 
    --      which has 190 int
    local itemName, itemLink = GetItemInfo( 58188 )
    local myBaseRing = itemLink
    
    -- Create a version with Enchant Ring - Intellect (+40 Intellect)
    myEnchantedRing = StatLogic:ModEnchantGem( myBaseRing, 4080 )
    
    -- Build Summary Table using LibStatLogic for each ring
    local baseData = {}
    local enchantedData = {}
    StatLogic:GetSum( myBaseRing, baseData )
    StatLogic:GetSum( myEnchantedRing, enchantedData )
    
    -- Add up the Intellect on each
    local baseRingInt = 0;
    local enchantedRingInt = 0;
    if ( baseData["INT"] ) then baseRingInt = baseData["INT"] end
    if ( enchantedData["INT"] ) then enchantedRingInt = enchantedData["INT"] end
    
    -- Let see what we get
    print( "Base ring has " .. baseRingInt .. " Intellect " .. myBaseRing )
    print( "Enchanted ring has " .. enchantedRingInt .. " Intellect" .. myEnchantedRing )
    

    Expected output:
    Base ring has 190 Intellect [base item link]
    Enchanted Ring has 230 Intellect [enchanted item link]

    Actual output (for a player without 475 enchanting skill, unconfirmed for player with 475 enchanting):
    Base ring has 190 Intellect [base item link]
    Enchanted Ring has 190 Intellect [enchanted item link]

    Using LibStatLogic-1.2 (r46), World of Warcraft 4.0.6 (r13623)

  • Indemnity83 added the tags New Defect Apr 20, 2011

To post a comment, please login or register a new account.