0

I am trying to get a trigger that will show with the sunfire debuff has less time then my nature's grace buff. the lua calls seem to be pulling the correct number, but it is constantly returning true?

function ()
    _,_,_,_,_,_,sundur= UnitDebuff("target","Sunfire","player");
    _,_,_,_,_,_,NGDur= UnitAura("player","Nature's Grace");
    if sundur and NGDur  then
        if sundur<NGDur+2 then
            return true
        else
            return false
        end
    end
end
4

1 回答 1

0

我发现的问题是广告允许全局保存声明的变量,这导致即使我更改它们也无法正确更新。我还必须更改一部分代码,仅在 uniteDebuff“施法者”过滤器上删除播放器周围的“”。

local _,_,_,_,_,_,sundur= UnitDebuff("target","Sunfire",player);
于 2014-02-14T18:56:13.047 回答