Fix syntax errors and update interrupt messages in Atrigan project
This commit is contained in:
2
Meta
2
Meta
Submodule Meta updated: 72956add4a...a9d5e32083
@@ -4,19 +4,18 @@ aura_env.peopleList = {}
|
|||||||
aura_env.currentInterrupt = 1
|
aura_env.currentInterrupt = 1
|
||||||
local playerClass = UnitClass("player")
|
local playerClass = UnitClass("player")
|
||||||
if playerClass == "Hunter" then
|
if playerClass == "Hunter" then
|
||||||
aura_env.classInterrupt = "Counter Shot" elseif
|
aura_env.classInterrupt = "Counter Shot"
|
||||||
playerClass == "Mage" then
|
elseif playerClass == "Mage" then
|
||||||
aura_env.classInterrupt = "Counterspell" elseif
|
aura_env.classInterrupt = "Counterspell"
|
||||||
playerClass == "Warlock" then
|
elseif playerClass == "Warlock" then
|
||||||
aura.classInterrupt = "Spell Lock"
|
aura.classInterrupt = "Spell Lock"
|
||||||
end
|
end
|
||||||
aura_env.messages =
|
aura_env.messages = {
|
||||||
{
|
|
||||||
["Interrupted"] = 9461,
|
["Interrupted"] = 9461,
|
||||||
["Cannot Interrupt"] = 9462,
|
["Cannot Interrupt"] = 9462,
|
||||||
["Initialized"] = 9451,
|
["Initialized"] = 9451,
|
||||||
["Added to interrupt list"], = 9452,
|
["Added to interrupt list"] = 9452,
|
||||||
["Cycle Interrupt DEBUG"] = 9551
|
["Cycle Interrupt DEBUG"] = 9551,
|
||||||
}
|
}
|
||||||
aura_env.encode = function(msg)
|
aura_env.encode = function(msg)
|
||||||
local date = date()
|
local date = date()
|
||||||
@@ -37,4 +36,4 @@ aura_env.decode = function(msg)
|
|||||||
tonumber(msg)
|
tonumber(msg)
|
||||||
local retint = msg + (hr * min)
|
local retint = msg + (hr * min)
|
||||||
return retint
|
return retint
|
||||||
end
|
end
|
||||||
|
@@ -7,7 +7,7 @@ function(...)
|
|||||||
local targetName = select(10, ...)
|
local targetName = select(10, ...)
|
||||||
local spellName = select(14, ...)
|
local spellName = select(14, ...)
|
||||||
local interruptedSpellName = select(17, ...)
|
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.messages["Interrupted"]
|
||||||
local msg = aura_env.encode(msg)
|
local msg = aura_env.encode(msg)
|
||||||
SendChatMessage(msg, "RAID")
|
SendChatMessage(msg, "RAID")
|
||||||
|
Reference in New Issue
Block a user