Only trigger if viewing steward

This commit is contained in:
Andrew Tomaka 2021-02-20 19:54:15 -05:00
parent 35bcc5b220
commit 32c069de50
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -40,7 +40,10 @@ function MyAddon.OnEvent(self, event, ...)
end end
function events:GOSSIP_SHOW() function events:GOSSIP_SHOW()
if GetZoneText() == 'The Necrotic Wake' then MyAddon.activateGoliath() end local isNecroticWake = GetZoneText() == 'The Necrotic Wake'
local isSteward = GetUnitName('npc') == 'Steward'
if isNecroticWake and isSteward then MyAddon.activateGoliath() end
end end
function events:CHAT_MSG_PARTY_LEADER(message, ...) function events:CHAT_MSG_PARTY_LEADER(message, ...)