Skip to content

Commit

Permalink
BWL-Razorgore: fix pull and stage detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidras committed Feb 6, 2024
1 parent 692872a commit 9765982
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions DBM-BWL/Razorgore.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local mod = DBM:NewMod("Razorgore", "DBM-BWL", 1)
local L = mod:GetLocalizedStrings()

mod:SetRevision("20240206210519")
mod:SetRevision("20240206223500")
mod:SetCreatureID(12435, 99999)--Bogus detection to prevent invalid kill detection if razorgore happens to die in phase 1
--mod:DisableEEKillDetection()--So disable only EE
mod:SetModelID(12435)
Expand All @@ -13,7 +13,7 @@ mod:RegisterEventsInCombat(
"SPELL_CAST_START 22425",
"SPELL_CAST_SUCCESS 23040 19873",
"SPELL_AURA_APPLIED 23023",
"CHAT_MSG_MONSTER_EMOTE",
-- "CHAT_MSG_MONSTER_EMOTE",
"UNIT_DIED"
)

Expand Down Expand Up @@ -76,12 +76,11 @@ function mod:SPELL_AURA_APPLIED(args)
end
end

--For some reason this no longer works
function mod:CHAT_MSG_MONSTER_EMOTE(msg)
--[[function mod:CHAT_MSG_MONSTER_EMOTE(msg)
if (msg == L.Phase2Emote or msg:find(L.Phase2Emote)) and self.vb.phase < 2 then
self:SendSync("Phase2")
end
end
end]]

function mod:UNIT_DIED(args)
local cid = self:GetCIDFromGUID(args.destGUID)
Expand All @@ -94,9 +93,9 @@ function mod:UNIT_DIED(args)
end
end

function mod:OnSync(msg)
--[[function mod:OnSync(msg)
if msg == "Phase2" and self.vb.phase < 2 then
warnPhase2:Show()
self:SetStage(2)
end
end
end]]
2 changes: 1 addition & 1 deletion DBM-BWL/localization.en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ L:SetOptionLocalization({

L:SetMiscLocalization({
Phase2Emote = "flee as the controlling power of the orb is drained.",
YellPull = "Intruders have breached the hatchery! Sound the alarm! Protect the eggs at all costs!\r\n"--Yes this yell actually has a return and new line in it. as grabbed by transcriptor
YellPull = "Intruders have breached the hatchery! Sound the alarm! Protect the eggs at all costs!\n"
})

-------------------
Expand Down

0 comments on commit 9765982

Please sign in to comment.