Как узнать какой баф является положительным, а какой дебафом?
Используя IsPositive почему-то все бафы считаются отрицательными, что не так?
local buffCount = unit.GetBuffCount( avatar.GetId() )
local s
for index = 0, buffCount - 1 do
local buff = unit.GetBuff( avatar.GetId(), index )
if buff.IsPositive then
s = "+++++"
else
s = "-----"
end
common.LogInfo( "common", "index: "..index.." buff.name: "..userMods.FromWString( buff.name ).." positive: "..s )
end