Compare commits
4 Commits
51bf59e1f4
...
3f0b38c47c
Author | SHA1 | Date | |
---|---|---|---|
3f0b38c47c | |||
20c24e3c3f | |||
65198986d5 | |||
ad9595122a |
2
Meta
2
Meta
Submodule Meta updated: 72956add4a...eee043a846
@@ -6,6 +6,16 @@ function(e)
|
||||
-- SendChatMessage("QUACK", "WHISPER", nil, UnitName("player"))
|
||||
end
|
||||
|
||||
if not Today then Today = date("%Y-%m-%d") end
|
||||
WeakAurasSaved = WeakAurasSaved or {}
|
||||
WeakAurasSaved.Cyka = WeakAurasSaved.Cyka or {}
|
||||
WeakAurasSaved.Cyka.LoginInfo = WeakAurasSaved.Cyka.LoginInfo or {}
|
||||
WeakAurasSaved.Cyka.LoginInfo[Today] = WeakAurasSaved.Cyka.LoginInfo[Today] or {}
|
||||
WeakAurasSaved.Cyka.LoginInfo[Today][UnitName("player")] = WeakAurasSaved.Cyka.LoginInfo[Today][UnitName("player")] or {}
|
||||
WeakAurasSaved.Cyka.LoginInfo[Today][UnitName("player")].claimed = WeakAurasSaved.Cyka.LoginInfo[Today][UnitName("player")].claimed or 0
|
||||
WeakAurasSaved.Cyka.LoginInfo[Today][UnitName("player")].onlineTimeInMinutes = WeakAurasSaved.Cyka.LoginInfo[Today][UnitName("player")].onlineTimeInMinutes or 0
|
||||
|
||||
|
||||
local rewardClaimed = WeakAurasSaved.Cyka.LoginInfo[Today][UnitName("player")].claimed
|
||||
local onlineTime = WeakAurasSaved.Cyka.LoginInfo[Today][UnitName("player")].onlineTimeInMinutes
|
||||
if rewardClaimed == 0 and onlineTime >= 120 then
|
||||
|
@@ -4,19 +4,18 @@ aura_env.peopleList = {}
|
||||
aura_env.currentInterrupt = 1
|
||||
local playerClass = UnitClass("player")
|
||||
if playerClass == "Hunter" then
|
||||
aura_env.classInterrupt = "Counter Shot" elseif
|
||||
playerClass == "Mage" then
|
||||
aura_env.classInterrupt = "Counterspell" elseif
|
||||
playerClass == "Warlock" then
|
||||
aura_env.classInterrupt = "Counter Shot"
|
||||
elseif playerClass == "Mage" then
|
||||
aura_env.classInterrupt = "Counterspell"
|
||||
elseif playerClass == "Warlock" then
|
||||
aura.classInterrupt = "Spell Lock"
|
||||
end
|
||||
aura_env.messages =
|
||||
{
|
||||
aura_env.messages = {
|
||||
["Interrupted"] = 9461,
|
||||
["Cannot Interrupt"] = 9462,
|
||||
["Initialized"] = 9451,
|
||||
["Added to interrupt list"], = 9452,
|
||||
["Cycle Interrupt DEBUG"] = 9551
|
||||
["Added to interrupt list"] = 9452,
|
||||
["Cycle Interrupt DEBUG"] = 9551,
|
||||
}
|
||||
aura_env.encode = function(msg)
|
||||
local date = date()
|
||||
@@ -37,4 +36,4 @@ aura_env.decode = function(msg)
|
||||
tonumber(msg)
|
||||
local retint = msg + (hr * min)
|
||||
return retint
|
||||
end
|
||||
end
|
||||
|
@@ -7,7 +7,7 @@ function(...)
|
||||
local targetName = select(10, ...)
|
||||
local spellName = select(14, ...)
|
||||
local interruptedSpellName = select(17, ...)
|
||||
if playerName == UnitName("player") and targetName == "Belac" and and interruptedSpellName == "Phangs of Guilt" then
|
||||
if playerName == UnitName("player") and targetName == "Belac" and interruptedSpellName == "Phangs of Guilt" then
|
||||
local msg = aura_env.messages["Interrupted"]
|
||||
local msg = aura_env.encode(msg)
|
||||
SendChatMessage(msg, "RAID")
|
||||
|
Reference in New Issue
Block a user