Only trigger if viewing steward
This commit is contained in:
parent
35bcc5b220
commit
32c069de50
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ function MyAddon.OnEvent(self, event, ...)
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
function events:CHAT_MSG_PARTY_LEADER(message, ...)
|
||||
|
|
Loading…
Reference in a new issue