Stat Weights Classic

Stat Weights Classic

228k Downloads

Error Paladin on Vengeance proc

lukasnoebauer opened this issue ยท 2 comments

commented

Hi,

whenever Vengeance (Retribution Talent) procs on my Paladin, i get this error repeatedly:

34664x stat_weights_classic\stat_weights_classic.lua:8693: attempt to perform arithmetic on global 'amount' (a nil value)
stat_weights_classic\stat_weights_classic.lua:8693: in function <stat_weights_classic\stat_weights_classic.lua:8669>
stat_weights_classic\stat_weights_classic.lua:8884: in function <stat_weights_classic\stat_weights_classic.lua:8869>
(tail call): ?
stat_weights_classic\stat_weights_classic.lua:13507: in function <stat_weights_classic\stat_weights_classic.lua:13500>
[C]: ?

Locals:
InCombatSkipped

commented

thanks!

commented

I'll patch this soon. If you have an editor handy, you can fix this temporarily by making this change at lines 8675-8677 in the file stat_weights_classic.lua:
Instead of

local veng = loadout.buffs[localized_spell_name("Vengeance")];
        if veng then
            local amount = 0;
            if veng.id == 20049 then

it should be

local amount = 0;
local veng = loadout.buffs[localized_spell_name("Vengeance")];
        if veng then
                if veng.id == 20049 then