Full state of the live install: prodigeomix fork content plus local OctoWoW patches (MC/Onyxia/ZG/Karazhan timers, Golemagg, Thaurissan, aura-scan perf, world markers), and the BWL changes from raid feedback: - Razorgore: exact egg count via SuperWoW cast events, count synced - Firemaw: Flame Buffet timer on by default, retimed from logs - Blackwing Alchemist: assist marking, no Skull/Cross or mob marks, mark follows the fire chain - Wyrmguard/Overseer: vulnerability read from the buff, one bar per mob with its raid mark and click-to-target - Bars: BigWigs_SetBarRaidMark event to show a raid mark beside a bar Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
74 lines
1.9 KiB
Lua
74 lines
1.9 KiB
Lua
|
|
local module, L = BigWigs:ModuleDeclaration("Flesh Hunter", "Ruins of Ahn'Qiraj")
|
|
|
|
module.revision = 20041
|
|
module.enabletrigger = module.translatedName
|
|
module.toggleoptions = {}
|
|
module.trashMod = true
|
|
|
|
L:RegisterTranslations("enUS", function() return {
|
|
cmd = "FleshHunter",
|
|
consumeother_trigger = "(.*) is afflicted by Consume",
|
|
consume_bar = " Consumed!",
|
|
} end )
|
|
|
|
module.defaultDB = {
|
|
bosskill = nil,
|
|
}
|
|
|
|
|
|
L:RegisterTranslations("zhCN", function() return {
|
|
-- Wind汉化修复Turtle-WOW中文数据
|
|
-- Last update: 2024-06-22
|
|
cmd = "FleshHunter",
|
|
consumeother_trigger = "(.*)受到了吞噬效果的影响。",
|
|
consume_bar = " 被吞噬!",
|
|
clickme = " >点击我!<",
|
|
} end )
|
|
local timer = {
|
|
consume = 15,
|
|
}
|
|
|
|
local icon = {
|
|
consume = "spell_nature_drowsy",
|
|
}
|
|
|
|
local syncName = {
|
|
consume = "FleshHunterConsume",
|
|
}
|
|
|
|
function module:OnEnable()
|
|
self:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_SELF_DAMAGE", "Event")
|
|
self:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_PARTY_DAMAGE", "Event")
|
|
self:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_DAMAGE", "Event")
|
|
self:ThrottleSync(1, syncName.consume)
|
|
end
|
|
|
|
function module:OnSetup()
|
|
self.started = nil
|
|
end
|
|
|
|
function module:OnEngage()
|
|
end
|
|
|
|
function module:OnDisengage()
|
|
end
|
|
|
|
function module:BigWigs_RecvSync(sync, rest, nick)
|
|
if sync == syncName.consume then
|
|
if rest == UnitName("player") then
|
|
self:Bar(string.format(UnitName("player") .. L["consume_bar"]), timer.consume, icon.consume)
|
|
else
|
|
self:Bar(string.format(rest .. L["consume_bar"] .. " >Click Me!<"), timer.consume, icon.consume)
|
|
self:SetCandyBarOnClick("BigWigsBar "..string.format(rest .. L["consume_bar"] .. " >Click Me!<"), function(name, button, extra) TargetByName(extra, true) end, rest)
|
|
end
|
|
end
|
|
end
|
|
|
|
function module:Event(msg)
|
|
local _,_,consumeother, mcverb = string.find(msg, L["consumeother_trigger"])
|
|
if consumeother then
|
|
self:Sync(syncName.consume .. " " .. consumeother)
|
|
end
|
|
end
|