Some abilities do not show in combat log
I'm trying to get abilities like concussive shot and silencing shot to show in the combat log but with no success, I'm just curious if such spells are not displayed in the combat log or if I'm missing something.
Here's what I have so far. Lua Code:
I have tried searching before posting, couldn't find anything. =[ |
I can guarantee that Concussive Shot and Silencing Shot both have combat log entries; you should try registering COMBAT_LOG_EVENT_UNFILTERED, and listen for that.
Edit: I was just looking at your code...don't use sourceName as your unit check, cache your GUID on PLAYER_LOGIN, and check the unit GUID. Even if that was the approach you wanted to take, cache UnitName so it isn't firing on every CLEU. |
Ah okay, that works.
I read on the wiki/wowpedia page that the normal event was the same as unfiltered just only tracking what you did so I figured it would would be fine, but everything shows up with unfiltered. Thanks a bunch, =) |
I am not entirely clear on the conditions that must be met for COMBAT_LOG_EVENT to fire; perhaps it depends on what filters you have set on your combat log?
In my experience, COMBAT_LOG_EVENT_UNFILTERED is typically the way to go, you're guaranteed to catch anything that triggers CLEU. Just want to stress how many times CLEU fires a second in some environments, and to take care of how many function calls you make when it fires. If you -MUST- make a function call, make sure to narrow down your CLEU function with if-then blocks. Caching data like UnitName(or UnitGUID) helps as well. Note: UnitGUID isn't available until PLAYER_LOGIN. |
Quote:
@Spawnova: If you're trying to get those spells to show in your combat log, check your settings by right-clicking the chat tab, clicking "Settings", and clicking the "Combat" category. If you're trying to do detect your use of those spells in an addon, watching UNIT_SPELLCAST_SENT/SUCCEEDED will be way more efficient than watching CLEU. |
Thanks guys, that's a lot of information I did not know about. :)
|
All times are GMT -6. The time now is 03:56 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI