-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BlackfathomDeeps_Classic/Ghamoo-ra: Import
- Loading branch information
Showing
12 changed files
with
154 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
-------------------------------------------------------------------------------- | ||
-- Module Declaration | ||
-- | ||
|
||
local mod, CL = BigWigs:NewBoss("Ghamoo-ra Discovery", 48, -2697) | ||
if not mod then return end | ||
mod:RegisterEnableMob(201722) -- Ghamoo-ra Season of Discovery | ||
mod:SetEncounterID(2697) | ||
|
||
-------------------------------------------------------------------------------- | ||
-- Locals | ||
-- | ||
|
||
local isWeakened = false | ||
|
||
-------------------------------------------------------------------------------- | ||
-- Localization | ||
-- | ||
|
||
local L = mod:GetLocale() | ||
if L then | ||
L.bossName = "Ghamoo-ra" | ||
end | ||
|
||
-------------------------------------------------------------------------------- | ||
-- Initialization | ||
-- | ||
|
||
function mod:GetOptions() | ||
return { | ||
407095, -- Crunch Armor | ||
{407025, "EMPHASIZE"}, -- Exposed | ||
407077, -- Triple Chomp | ||
{406970, "INFOBOX"} | ||
},nil,{ | ||
[407025] = CL.weakened, -- Exposed (Weakened) | ||
} | ||
end | ||
|
||
function mod:OnRegister() | ||
self.displayName = L.bossName | ||
end | ||
|
||
function mod:OnBossEnable() | ||
self:Log("SPELL_AURA_APPLIED", "CrunchArmorApplied", 407095) | ||
self:Log("SPELL_AURA_APPLIED_DOSE", "CrunchArmorApplied", 407095) | ||
self:Log("SPELL_AURA_APPLIED", "Exposed", 407025) | ||
self:Log("SPELL_AURA_REMOVED", "ExposedOver", 407025) | ||
self:Log("SPELL_AURA_APPLIED", "AquaShellApplied", 406970) | ||
self:Log("SPELL_AURA_REMOVED_DOSE", "AquaShellRemovedDose", 406970) | ||
self:Log("SPELL_AURA_APPLIED", "TripleChomp", 407077) | ||
|
||
self:Death("Win", 201722) | ||
end | ||
|
||
|
||
function mod:OnEngage() | ||
isWeakened = false | ||
end | ||
|
||
-------------------------------------------------------------------------------- | ||
-- Event Handlers | ||
-- | ||
|
||
function mod:CrunchArmorApplied(args) | ||
local amount = args.amount or 1 | ||
self:StackMessage(args.spellId, "purple", args.destName, amount, 3) | ||
if amount >= 3 then | ||
self:PlaySound(args.spellId, "warning") | ||
end | ||
end | ||
|
||
function mod:Exposed(args) | ||
isWeakened = true | ||
self:CloseInfo(406970) -- Aqua Shell | ||
self:Message(args.spellId, "yellow", CL.duration:format(CL.weakened, 60)) | ||
self:Bar(args.spellId, 60, CL.weakened) | ||
self:PlaySound(args.spellId, "long") | ||
end | ||
|
||
function mod:ExposedOver(args) | ||
isWeakened = false | ||
self:Message(args.spellId, "red", CL.over:format(CL.weakened)) | ||
self:PlaySound(args.spellId, "info") | ||
end | ||
|
||
function mod:AquaShellApplied(args) | ||
self:OpenInfo(args.spellId, args.spellName) | ||
self:SetInfoBar(args.spellId, 1, 1) | ||
self:SetInfo(args.spellId, 1, 100) | ||
end | ||
|
||
function mod:AquaShellRemovedDose(args) | ||
self:SetInfoBar(args.spellId, 1, args.amount/100) | ||
self:SetInfo(args.spellId, 1, args.amount) | ||
end | ||
|
||
function mod:TripleChomp(args) | ||
self:Message(args.spellId, "purple") | ||
if isWeakened then | ||
self:Bar(args.spellId, 11.3) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters