Skip to content

Commit

Permalink
Add AutoGossip for Lei Shen Displacement Pad
Browse files Browse the repository at this point in the history
  • Loading branch information
QartemisT committed May 13, 2024
1 parent 00b595e commit 6d7cb44
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions DBM-Raids-MoP/ThroneofThunder/LeiShen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ mod:RegisterEventsInCombat(
"UNIT_SPELLCAST_SUCCEEDED"
)

mod:RegisterEvents(
"GOSSIP_SHOW"
)

--Conduits (All phases)
local warnStaticShock = mod:NewTargetAnnounce(135695, 4)
local warnDiffusionChain = mod:NewTargetAnnounce(135991, 3)--More informative than actually preventative. (you need to just spread out, and that's it. can't control who it targets only that it doesn't spread)
Expand Down Expand Up @@ -96,6 +100,7 @@ mod:AddBoolOption("OverchargeArrow")--On by default because the overcharge targe
mod:AddBoolOption("StaticShockArrow", false)--Off by default as most static shock stack points are pre defined and not based on running to player, but rathor running to a raid flare on ground
mod:AddBoolOption("SetIconOnOvercharge", true)
mod:AddBoolOption("SetIconOnStaticShock", true)
mod:AddBoolOption("AGStartDP", true)

mod.vb.phase = 1
mod.vb.warnedCount = 0
Expand Down Expand Up @@ -561,3 +566,12 @@ function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
timerViolentGaleWindsCD:Start()
end
end

function mod:GOSSIP_SHOW()
local gossipOptionID = self:GetGossipID()
if gossipOptionID then
if self.Options.AGStartDP and gossipOptionID == 41812 then
self:SelectGossip(gossipOptionID, true)
end
end
end
3 changes: 2 additions & 1 deletion DBM-Raids-MoP/localization.en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,8 @@ L:SetOptionLocalization({
StaticShockArrow = "Show DBM Arrow when someone is affected by $spell:135695",
OverchargeArrow = "Show DBM Arrow when someone is affected by $spell:136295",
SetIconOnOvercharge = DBM_CORE_L.AUTO_ICONS_OPTION_TARGETS:format(136295),
SetIconOnStaticShock = DBM_CORE_L.AUTO_ICONS_OPTION_TARGETS:format(135695)
SetIconOnStaticShock = DBM_CORE_L.AUTO_ICONS_OPTION_TARGETS:format(135695),
AGStartDP = "Auto select gossip to use Displacement Pad before Lei Shen"
})

L:SetMiscLocalization({
Expand Down

0 comments on commit 6d7cb44

Please sign in to comment.