Fix syntax errors and update interrupt messages in Atrigan project

This commit is contained in:
2025-05-17 18:43:53 +02:00
parent 51bf59e1f4
commit ad9595122a
3 changed files with 10 additions and 11 deletions

2
Meta

Submodule Meta updated: 72956add4a...a9d5e32083

View File

@@ -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

View File

@@ -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")