Skip to content

Commit

Permalink
WarWithin/CityOfThreads/Trash: Twist Thoughts
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Oct 14, 2024
1 parent f476723 commit c0f34f6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ BigWigs:AddColors("City of Threads Trash", {
[436205] = "yellow",
[441795] = "green",
[443430] = "red",
[443433] = {"blue","red"},
[443437] = {"blue","yellow"},
[443500] = "orange",
[443507] = "yellow",
Expand Down
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ BigWigs:AddSounds("City of Threads Trash", {
[436205] = "info",
[441795] = "info",
[443430] = "alert",
[443433] = {"alert","underyou"},
[443437] = "alarm",
[443500] = "alarm",
[443507] = "info",
Expand Down
23 changes: 23 additions & 0 deletions WarWithin/CityOfThreads/Trash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function mod:GetOptions()
448305, -- Stolen Power
-- Herald of Ansurek
{443437, "SAY", "SAY_COUNTDOWN", "NAMEPLATE"}, -- Shadows of Doubt
443433, -- Twist Thoughts
-- Sureki Silkbinder
{443430, "NAMEPLATE"}, -- Silk Binding
-- Royal Swarmguard
Expand Down Expand Up @@ -119,6 +120,9 @@ function mod:OnBossEnable()
self:Log("SPELL_CAST_SUCCESS", "ShadowsOfDoubt", 443436)
self:Log("SPELL_AURA_APPLIED", "ShadowsOfDoubtApplied", 443437)
self:Log("SPELL_AURA_REMOVED", "ShadowsOfDoubtRemoved", 443437)
self:Log("SPELL_CAST_START", "TwistThoughts", 443433)
self:Log("SPELL_PERIODIC_DAMAGE", "TwistThoughtsDamage", 443435)
self:Log("SPELL_PERIODIC_MISSED", "TwistThoughtsDamage", 443435)
self:Death("HeraldOfAnsurekDeath", 220196)

-- Sureki Silkbinder
Expand Down Expand Up @@ -269,6 +273,25 @@ function mod:ShadowsOfDoubtRemoved(args)
end
end

function mod:TwistThoughts(args)
local _, isReady = self:Interrupter()
if isReady then
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
self:PlaySound(args.spellId, "alert")
end
end

do
local prev = 0
function mod:TwistThoughtsDamage(args)
if self:Me(args.destGUID) and args.time - prev > 2 then
prev = args.time
self:PersonalMessage(443433, "underyou")
self:PlaySound(443433, "underyou")
end
end
end

function mod:HeraldOfAnsurekDeath(args)
self:ClearNameplate(args.destGUID)
end
Expand Down

0 comments on commit c0f34f6

Please sign in to comment.