View Single Post
07-06-11, 03:33 AM   #1
Belechannas
A Warpwood Thunder Caller
Join Date: May 2010
Posts: 86
InfoPanel_Stats pet issue

It appears that the logic of InfoPanel_Stats plugin does not handle death of a pet correctly. When my pet dies in combat, the plugin gets stuck in Omen (combat) mode even after combat is over.

From debugging printout I added, it appears the plugin gets the events like this:

PET_ATTACK_START
PLAYER_REGEN_DISABLED
<plugin switches to Omen display>
<pet dies>
<combat ends>
PLAYER_REGEN_ENABLED
<plugin remains in Omen display>

The display continues to show Omen until you leave combat with a live pet, or reload the UI.

If the pet doesn't die, then PET_ATTACK_STOP is received at the same time as PLAYER_REGEN_ENABLED, and the display switches back to Recount.

I'm not very familiar with combat-related events; is there an easy way to handle this properly?