잡담에러메시지 확인 부탁 드려요!

악포
2020-03-26
조회수 83

에러메시지 확인 부탁 드립니다 ㅠ

9081x [string "--[==[ Error in 'Sanity loss from hits':'in..."]:78: attempt to perform arithmetic on field 'sanityReduction' (a nil value)

[string "--[==[ Error in 'Sanity loss from hits' ]==] return function(event, ...)

    if (event == "UNIT_POWER_FREQUENT") then

        local unit, powerType = ...

        if (unit == "player" and powerType == "ALTERNATE") then

            local power = UnitPower(unit, 10, true)

            if (aura_env.lastPower) then

                local diff = aura_env.lastPower - power

                if (diff <= 12 and diff ~= 0) then -- tick

                    local rollingAverage = GetCacheAverage()

                    if (math.abs(diff - rollingAverage) > 1) then

                        ResetCache()

                    end

                    aura_env.tickCache[10 - aura_env.ticks % 10] = diff

                    aura_env.ticks = aura_env.ticks + 1

                    rollingAverage = GetCacheAverage()

                    

                    local drain = GetEffectiveDrain(rollingAverage)

                    aura_env.remainingTime = SecondsToClock(power / drain)

                elseif (diff > 12) then -- big hit

                    aura_env.lastBigHit = diff

                    aura_env.lostToHits = aura_env.lostToHits + diff

                end

            end

            aura_env.lastPower = power

        end

    elseif (event == "SCENARIO_UPDATE") then

        local scenario = select(1, ...)

        if (not scenario) then

            Reset()

        end

        

    end

end



"]:17: in function <[string "--[==[ Error in 'Sanity loss from hits' ]==..."]:1>

[string "=[C]"]: in function `xpcall'

[string "@WeakAuras\GenericTrigger.lua"]:548: in function <WeakAuras\GenericTrigger.lua:512>

[string "@WeakAuras\GenericTrigger.lua"]:665: in function `ScanEventsInternal'

[string "@WeakAuras\GenericTrigger.lua"]:626: in function `ScanEvents'

[string "@WeakAuras\GenericTrigger.lua"]:759: in function <WeakAuras\GenericTrigger.lua:750>


환영 들어가면 계속 에러 나고 있습니다 뭘 수정해야 할까요?ㅠ

0 1
망토가 타락저항업글이 생기면서 오류가 생겨서 그래요. 수정버젼으로 위크오라 업데이트 했습니다. 제 위크오라 프로필에서 새버젼으로 받아보세용