Fix syntax errors and update interrupt messages in Atrigan project
This commit is contained in:
@@ -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