C H A P T E R  9


Using the Combat Log to Build a Cooldown Monitor

We have already used many events. But there are two particularly interesting events we haven't discussed yet: COMBAT_LOG_EVENT and COMBAT_LOG_EVENT_UNFILTERED. Both events are related to the combat log and can receive numerous arguments (up to 20). We will see the meaning of these arguments in this chapter. The combat log events are fired for all combat-related occurrences; for example, when anyone in your vicinity attacks a mob or anyone gets hit. The event arguments tell you exactly what happened.

The example mod we will write in this chapter will be called Cooldown Monitor, ...

Get Beginning Lua with World of Warcraft Addons now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.