Automatically activate NW goliath #11

Merged
atomaka merged 2 commits from activate-goliath into master 2021-02-20 19:56:03 -05:00
Showing only changes of commit 32c069de50 - Show all commits

View file

@ -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, ...)