To get number of fragments per shard, a.k.a. modifier, you need to use this:
Lua Code:
local mod = UnitPowerDisplayMod(7)
Here's a quote of my post from another
thread regarding UnitPower and its return.
Originally Posted by lightspark
Use UnitPower's 3 arg to get unmodified values.
Lua Code:
local mod = UnitPowerDisplayMod(8) -- returns 10 local cur_mod = UnitPower("player", 8) -- let's say it returns 15 local cur_unmod = UnitPower("player", 8, true) -- will return 150
You can divide unmodified value by modifier later, when you need to do so.
|
Just replace 8s w/ 7s or
Enum.PowerType.SoulShards.
Everything else is simple maths.