Here we go...
Code:
if(tmp->GetOwnerID() != GetID()) {
SetPetID(0);
// WE NEED TO KILL THE PET HERE!!!!!
return(NULL);
}
I'm assuming adding a kill code here in pets.cpp will get the job done?
Would this work for instance?
Code:
if(tmp->GetOwnerID() != GetID()) {
SetPetID(0);
// Attempting to remove shadow pet.
depop();
return(NULL);
}
Not sure that depop() is registered in any global functions or not =S