View Single Post
  #1  
Old 01-12-2003, 06:03 AM
IASoveraign
Fire Beetle
 
Join Date: Jan 2003
Posts: 5
Default Code: Pet agro fix (well, if it was broken)

I noticed my pets weren't attacking critters that attacked me, so I made a small change to attack.cpp (highlighted below).

Code:
		// Agro the client's pet if it has one.
		if (other->IsClient())
		{
			// TODO: When NPC's charm - pet might become client, not NPC -- Soveraign
			NPC * client_pet = (NPC *) other->GetPet();
			if (client_pet)
			{
				client_pet->AddToHateList(this);
			}
		}
Reply With Quote