LibStatLogic-1.2

13 - Ring Enchant not parsed or ignored

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)

User When Change
Indemnity83 Apr 20, 2011 at 06:16 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Reported
Apr 20, 2011
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees