Pets are like state workers
Posted: Wed May 22, 2019 3:12 pm
When you tell one to attack and then back off, then attack again they just sit there.
I think this is needed
So under attack in commands.cpp
I think this is needed
Code: Select all
client->GetPlayer()->GetInfoStruct()->pet_behavior += 2;Code: Select all
if (client->GetPlayer()->GetPet()) {
client->GetPlayer()->GetPet()->AddHate((Entity*)client->GetPlayer()->GetTarget(), 1);
client->GetPlayer()->GetInfoStruct()->pet_behavior += 2;
}
if (client->GetPlayer()->GetCharmedPet())
client->GetPlayer()->GetCharmedPet()->AddHate((Entity*)client->GetPlayer()->GetTarget(), 1);