--Pull timer
--CHAT_MSG_SAY HIDE_PULL CHAT_MSG_PARTY CHAT_MSG_PARTY_LEADER PLAYER_REGEN_DISABLED CHAT_MSG_ADDON
--TSU
function(allstates, e, msg, sender)
    if e == "CHAT_MSG_SAY" or e == "CHAT_MSG_PARTY" or e == "CHAT_MSG_PARTY_LEADER" or e == "CHAT_MSG_ADDON" then
        if e ~= "CHAT_MSG_ADDON" then 
            if (sender == "Angellianna" or sender == "Piinkiepiie" or sender == "Smolpotato") and msg:match("%d+") and select(1, msg:find("%d+")) == 1 and select(2, msg:find(".+")) <= 3 then
                aura_env.pullTime = tonumber(msg:match("%d+"))
            end
        else
            if msg:match("Pull") then
                aura_env.pullTime = tonumber(sender:match("%d+"))
            else
                break
            end
        end
        if aura_env.timer then
            aura_env.timer:Cancel()
        end
        aura_env.timer = C_Timer.NewTimer(aura_env.pullTime, function() WeakAuras.ScanEvents("HIDE_PULL") end)
        allstates[1] = {
            show = true,
            changed = true,
            progressType = "timed",
            expirationTime = GetTime() + aura_env.pullTime,
            duration = aura_env.pullTime,
        }
        print(e, msg, sender)
        return true
    elseif e == "HIDE_PULL" then
        allstates[1].show = false
        allstates[1].changed = true
        return true
    elseif e == "PLAYER_REGEN_DISABLED" then
        if allstates[1] then
            allstates[1].show = false
            allstates[1].changed = true
        end
        return true
    end
end

--[[
dO0dlaGiq1LuvvgLkvNsvLxrHywue3svvLDPigMIQJjuTmkWZesnnksxtb02uKsJtHuCofPyDkKmpfG6EaCqr0cvKQhsHAIcjxuOSrqjFuHyKkuDsfOvQQmtvk3esXofPFck1qHuTufKNc1uH4Quq2QcP0xvaYzvvL3sb1DPqAVu9xvYGjhwIfdkEmGMSaxwQntr9ziz0IWPL0Qviv9AiLMTQCBbTBr9BGgUqSCk9CvmDLUoiBxr57kugVIKZRGA9kaEVcPY9vvv1(r7XDehh64ahh4ioE7Pwy9kOoog2gc52GPXC8WW2S5tVEA0ZN7yyaTbT1yWhO1r804E6Cp1apDUNgTNo3tn1tJ7R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