Files
wow-weakauras/WIP/Atrigan Interrupt/Display.lua
2024-08-24 22:43:07 +02:00

26 lines
937 B
Lua

--Display every frame for text
--Every frame
function()
print(aura_env.peopleList[aura_env.currentInterrupt])
if aura_env.peopleList[aura_env.currentInterrupt] == UnitName("player") then
if UnitCastingInfo("Belac") then
local sname = UnitCastingInfo("Belac")
if sname == "Phangs of Guilt" then
return "Interrupt it reeee"
end
end
if UnitDebuff("player", "Belac's Prisoner") or UnitIsDead("player") then --If is in cage
local msg = aura_env.messages["Cannot Interrupt"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
end
if GetTime() < aura_env.interruptTime then --If is on cooldown
local msg = aura_env.messages["Cannot Interrupt"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
end
return "You're next"
end
end