Skip to content

Commit

Permalink
WarWithin/CityOfThreads/Trash: Venom Strike
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Nov 17, 2024
1 parent 5d597a3 commit 6252966
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local L = BigWigs:NewBossLocale("City of Threads Trash", "deDE")
if not L then return end
if L then
L.herald_of_ansurek = "Herold von Ansurek"
L.sureki_venomblade = "Giftklinge der Sureki"
L.sureki_silkbinder = "Seidenbinder der Sureki"
L.royal_swarmguard = "Königliche Schwarmwache"
L.xephitik = "Xeph'itik"
Expand Down
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local L = BigWigs:NewBossLocale("City of Threads Trash", "esES") or BigWigs:NewB
if not L then return end
if L then
L.herald_of_ansurek = "Heraldo de Ansurek"
L.sureki_venomblade = "Hojaveneno sureki"
L.sureki_silkbinder = "Vinculasedas sureki"
L.royal_swarmguard = "Guardaenjambre real"
L.xephitik = "Xeph'itik"
Expand Down
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local L = BigWigs:NewBossLocale("City of Threads Trash", "frFR")
if not L then return end
if L then
L.herald_of_ansurek = "Héraut / Héraldesse d'Ansurek"
L.sureki_venomblade = "Lamevenin sureki"
L.sureki_silkbinder = "Tissesoie sureki"
L.royal_swarmguard = "Garde-essaim royal"
L.xephitik = "Xeph'itik"
Expand Down
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local L = BigWigs:NewBossLocale("City of Threads Trash", "itIT")
if not L then return end
if L then
L.herald_of_ansurek = "Alfiere di Ansurek"
L.sureki_venomblade = "Lama Venefica Sureki"
L.sureki_silkbinder = "Vincolaseta Sureki"
L.royal_swarmguard = "Guardia dello Sciame Reale"
L.xephitik = "Xeph'itik"
Expand Down
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local L = BigWigs:NewBossLocale("City of Threads Trash", "koKR")
if not L then return end
if L then
L.herald_of_ansurek = "안수레크의 전령"
L.sureki_venomblade = "수레키 맹독칼날"
L.sureki_silkbinder = "수레키 비단결속사"
L.royal_swarmguard = "왕실 무리수호병"
L.xephitik = "제프이티크"
Expand Down
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local L = BigWigs:NewBossLocale("City of Threads Trash", "ptBR")
if not L then return end
if L then
L.herald_of_ansurek = "Arauto de Ansurek"
L.sureki_venomblade = "Venelâmina Sureki"
L.sureki_silkbinder = "Atasseda Sureki"
L.royal_swarmguard = "Zanguarda Régio"
L.xephitik = "Xeph'itik"
Expand Down
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local L = BigWigs:NewBossLocale("City of Threads Trash", "ruRU")
if not L then return end
if L then
L.herald_of_ansurek = "Глашатай Ансурек"
L.sureki_venomblade = "Суреки-ядошип"
L.sureki_silkbinder = "Суреки – повелитель шелка"
L.royal_swarmguard = "Королевский страж роя"
L.xephitik = "Ксеф'итик"
Expand Down
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local L = BigWigs:NewBossLocale("City of Threads Trash", "zhCN")
if not L then return end
if L then
L.herald_of_ansurek = "安苏雷克的传令官"
L.sureki_venomblade = "苏雷吉剧毒之刃"
L.sureki_silkbinder = "苏雷吉缚丝者"
L.royal_swarmguard = "皇家虫群卫士"
L.xephitik = "谢非提克"
Expand Down
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local L = BigWigs:NewBossLocale("City of Threads Trash", "zhTW")
if not L then return end
if L then
--L.herald_of_ansurek = "Herald of Ansurek"
--L.sureki_venomblade = "Sureki Venomblade"
--L.sureki_silkbinder = "Sureki Silkbinder"
--L.royal_swarmguard = "Royal Swarmguard"
--L.xephitik = "Xeph'itik"
Expand Down
1 change: 1 addition & 0 deletions WarWithin/CityOfThreads/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ BigWigs:AddColors("City of Threads Trash", {
[434137] = "yellow",
[436205] = "yellow",
[441795] = "green",
[443397] = {"blue","purple"},
[443430] = "red",
[443433] = {"blue","red"},
[443437] = {"blue","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 @@ -37,6 +37,7 @@ BigWigs:AddSounds("City of Threads Trash", {
[434137] = "long",
[436205] = "info",
[441795] = "info",
[443397] = "alert",
[443430] = "alert",
[443433] = {"alert","underyou"},
[443437] = "alarm",
Expand Down
41 changes: 41 additions & 0 deletions WarWithin/CityOfThreads/Trash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ mod.displayName = CL.trash
mod:RegisterEnableMob(
223254, -- Queen Ansurek / The Vizier (gossip NPC)
220196, -- Herald of Ansurek
220193, -- Sureki Venomblade
220195, -- Sureki Silkbinder
220197, -- Royal Swarmguard
219984, -- Xeph'itik
Expand All @@ -34,6 +35,7 @@ mod:RegisterEnableMob(
local L = mod:GetLocale()
if L then
L.herald_of_ansurek = "Herald of Ansurek"
L.sureki_venomblade = "Sureki Venomblade"
L.sureki_silkbinder = "Sureki Silkbinder"
L.royal_swarmguard = "Royal Swarmguard"
L.xephitik = "Xeph'itik"
Expand Down Expand Up @@ -66,6 +68,8 @@ function mod:GetOptions()
-- Herald of Ansurek
{443437, "SAY", "SAY_COUNTDOWN", "NAMEPLATE"}, -- Shadows of Doubt
443433, -- Twist Thoughts
-- Sureki Venomblade
{443397, "DISPEL", "NAMEPLATE"}, -- Venom Strike
-- Sureki Silkbinder
{443430, "NAMEPLATE"}, -- Silk Binding
-- Royal Swarmguard
Expand Down Expand Up @@ -97,6 +101,7 @@ function mod:GetOptions()
{447271, "NAMEPLATE"}, -- Tremor Slam
}, {
[443437] = L.herald_of_ansurek,
[443397] = L.sureki_venomblade,
[443430] = L.sureki_silkbinder,
[443500] = L.royal_swarmguard,
[450784] = L.xephitik,
Expand Down Expand Up @@ -131,6 +136,12 @@ function mod:OnBossEnable()
self:Log("SPELL_PERIODIC_MISSED", "TwistThoughtsDamage", 443435)
self:Death("HeraldOfAnsurekDeath", 220196)

-- Sureki Venomblade
self:RegisterEngageMob("SurekiVenombladeEngaged", 220193)
self:Log("SPELL_CAST_SUCCESS", "VenomStrikeSuccess", 443397)
self:Log("SPELL_AURA_APPLIED", "VenomStrikeApplied", 443401)
self:Death("SurekiVenombladeDeath", 220193)

-- Sureki Silkbinder
self:RegisterEngageMob("SurekiSilkbinderEngaged", 220195)
self:Log("SPELL_CAST_START", "SilkBinding", 443430)
Expand Down Expand Up @@ -309,6 +320,36 @@ function mod:HeraldOfAnsurekDeath(args)
self:ClearNameplate(args.destGUID)
end

-- Sureki Venomblade

function mod:SurekiVenombladeEngaged(guid)
if self:Tank() or self:Dispeller("poison", nil, 443397) then
self:Nameplate(443397, 2.6, guid) -- Silk Binding
end
end

function mod:VenomStrikeSuccess(args)
if self:Tank() or self:Dispeller("poison", nil, args.spellId) then
self:Nameplate(args.spellId, 11.1, args.sourceGUID)
end
end

do
local prev = 0
function mod:VenomStrikeApplied(args)
-- throttle because separate debuffs can be applied by multiple mobs at once
if (self:Me(args.destGUID) or (self:Dispeller("poison", nil, 443397) and self:Friendly(args.destFlags))) and args.time - prev > 2.5 then
prev = args.time
self:TargetMessage(443397, "purple", args.destName)
self:PlaySound(443397, "alert", nil, args.destName)
end
end
end

function mod:SurekiVenombladeDeath(args)
self:ClearNameplate(args.destGUID)
end

-- Sureki Silkbinder

function mod:SurekiSilkbinderEngaged(guid)
Expand Down

0 comments on commit 6252966

Please sign in to comment.