View Single Post
03-29-20, 11:28 PM   #4
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
In most cases code responds to events, therefore they happen first and then you do something when they fire.

For example, AUCTION_HOUSE_SHOW fires and then you can scan for listed posts. You wouldn't, nor couldn't, scan for auctions if the auction house window was not open.

An obvious exception is C_AuctionHouse.CloseAuctionHouse() which then triggers AUCTION_HOUSE_CLOSED, essentially the reverse of the usual activity.
  Reply With Quote