Pull NPC and Zone checks to identifiers
This commit is contained in:
parent
c42f4b3f37
commit
9d69674325
1 changed files with 5 additions and 2 deletions
|
@ -15,8 +15,11 @@ StaticPopupDialogs["GOLIATH_MISSING"] = {
|
||||||
f:RegisterEvent("GOSSIP_SHOW")
|
f:RegisterEvent("GOSSIP_SHOW")
|
||||||
|
|
||||||
f:SetScript("OnEvent", function(self, event, ...)
|
f:SetScript("OnEvent", function(self, event, ...)
|
||||||
local isNecroticWake = GetZoneText() == "The Necrotic Wake"
|
-- check if The Necrotic Wake
|
||||||
local isSteward = GetUnitName("npc") == "Steward"
|
local isNecroticWake = C_Map.GetBestMapForUnit("player") == 1666
|
||||||
|
-- check if Steward
|
||||||
|
local guid = UnitGUID("npc")
|
||||||
|
local isSteward = tonumber(guid and strsub(guid, 27, 32)) == 166663
|
||||||
|
|
||||||
if isNecroticWake and isSteward then
|
if isNecroticWake and isSteward then
|
||||||
options = C_GossipInfo.GetOptions()
|
options = C_GossipInfo.GetOptions()
|
||||||
|
|
Loading…
Reference in a new issue