/
local bossAlive, targetExist = self:BossAlive() |
if bossAlive then |
-- Boss fight start |
-- self:Print("boss fight start") |
self:Print("boss fight start") |
self.bossEngaged = true |
self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") |
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossKill") |
if self.bossEngaged then |
if self:GroupInCombat() then |
-- Still in combat, schedule check again |
-- self:Print("ScheduleTimer CheckBossWipe") |
self:Print("ScheduleTimer CheckBossWipe") |
self:ScheduleTimer("CheckBossWipe", 3) |
elseif confirm then |
-- Boss fight wipe |
-- self:Print("boss fight: wipe") |
self:Print("boss fight: wipe") |
self:ReplyAllMissedBoss("wipe") |
self:HandleBossFightEnd() |
else |
-- Schedule for boss fight wipe in 3 seconds (unless boss is killed before) |
-- self:Print("ScheduleTimer CheckBossWipe confirm") |
self:Print("ScheduleTimer CheckBossWipe confirm") |
self:ScheduleTimer("CheckBossWipe", 3, true) |
end |
end |
function AutoReply:CheckBossKill(eventname) |
-- self:Print(eventname) |
if self.bossEngaged and (self.db.profile.raidEn or self.db.profile.dungeonEn) then |
-- self:Print("CheckBossKill") |
self:Print("CheckBossKill") |
if self:AllBossesDead() then |
-- self:Print("boss fight: kill") |
self:Print("boss fight: kill") |
self.numKilledBosses = self.numKilledBosses + 1 |
self:ReplyAllMissedBoss("kill") |
self:HandleBossFightEnd() |
return endTime or "" |
end |
end |
-- self:Print(BGID) |
self:Print(BGID) |
local matchString = BGMatchStrings[BGID] or "(%d+)" |
local firstScoreLine = BGFirstScoreLineArray[BGID] or 1 |
local BGstatus = "" |