GetSourceReforgeStats

From Warcraft Wiki
Jump to navigation Jump to search
Links
Info
Added in 4.0.1

Returns the reforge item's source stats, which can be used to reforge into another (dest) stat.

name1, statID1, statValue1, ... = GetSourceReforgeStats()

Returns

name
string - Stat Name
statID
number - Stat ID
statValue
number - Stat Value. This is the amount that will be subtracted and can be reforged into another stat
Stat ID Stat Name
3
Agility
4
Strength
5
Intellect
6
Spirit
7
Stamina
13
Dodge Rating
14
Parry Rating
31
Hit Rating
32
Critical Strike Rating
36
Haste Rating
37
Expertise Rating
45
Spell Power
49
Mastery Rating

Example

 [Handwraps of the Cleansing Flame]

/dump GetSourceReforgeStats() => "Spirit", 6, 82, "Haste Rating", 36, 68
Stat Old Diff New
(6) Spirit 206 - 82 124
(36) Haste Rating 172 - 68 104

This example will print all the reforge item's source stats

local stats = {GetSourceReforgeStats()}

for i = 1, #stats, 3 do
	print(stats[i], stats[i+1], stats[i+2])
end

See Also