C H A P T E R  9

image

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 live online training, plus books, videos, and digital content from nearly 200 publishers.