Hi! Is there a more efficient solution to detecting said condition than using UNIT_MANA or OnUpdate and calling UnitPower() each time? I am trying to put together an addon that collects data about mana regen sources and rates and need to use COMBAT_LOG_EVENT_UNFILTERED anyway but that plus an OnUpdate running at the same time seems overkill for such a small addon :(
You don't need an OnUpdate, but you do need to watch UNIT_MANA. There's no other way to detect when a unit's mana has changed. You could improve efficiently slightly by watching UNIT_MAXMANA and storing the unit's maximum mana in a variable, then comparing that to the value of UnitPower() on the UNIT_MANA event, instead of calling UnitPowerMax() on every UNIT_MANA.
Yes I'm doing exacty what you are suggesting, was just hoping I somehow missed an event. Thank you, going to stick with UNIT_MANA then, maybe cut down on features if it turns out to be unreasonably expensive.