View Single Post
  #1  
Old 07-14-2008, 04:01 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default Bug Fix: Stop Pets Fleeing

I started a level 1 necro and noticed my pet started fleeing at low health:

In attack.cpp, at line 1643, changing:

Code:
if(damage > 0) {
                //see if we are gunna start fleeing
                CheckFlee();
        }
to

Code:
if(damage > 0) {
                //see if we are gunna start fleeing
                if(!IsPet()) CheckFlee();
        }
seems to fix it.
Reply With Quote