Skip to content

Commit

Permalink
Improve Tarragrue detection
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalOS committed Apr 18, 2020
1 parent 49ce515 commit e5f0752
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DBM-Challenges/Shadowlands/Torghast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,11 @@ end
--]]

function mod:NAME_PLATE_UNIT_ADDED(unit)
if unit and (UnitName(unit) == "The Tarragrue") then
if unit then
local guid = UnitGUID(unit)
if not guid then return end
if not warnedGUIDs[guid] then
local cid = self:GetCIDFromGUID(guid)
if cid == 152253 and not warnedGUIDs[guid] then
warnedGUIDs[guid] = true
PlaySoundFile("Interface\\AddOns\\DBM-CHallenges\\Shadowlands\\Stars.mp3", "Master")
end
Expand Down

0 comments on commit e5f0752

Please sign in to comment.