View Single Post
  #1  
Old 07-15-2008, 12:38 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default Bug Fix: Pet HP Bar out-of-combat update

Here is another pet related fix. I noticed that my pet's HP bar (in the Pet Info box) wasn't updating out-of-combat, although his HP were regenerating when queried with /pet report health.

My fix was to change npc.cpp:575,

From:

Code:
if (sendhpupdate_timer.Check() && IsTargeted()) {
To:

Code:
if (sendhpupdate_timer.Check() && (IsTargeted() || (IsPet() && GetOwner() && GetOwner()->IsClient()))) {
Reply With Quote