Remove pet move/follow on non-GM summon PCy

This commit is contained in:
Noudess 2021-02-25 12:12:25 -05:00
parent 2f239fd6a3
commit 1f3ce2b34d

View File

@ -590,10 +590,11 @@ void Client::ProcessMovePC(uint32 zoneID, uint32 instance_id, float x, float y,
return;
}
if(GetPetID() != 0) {
if(zm != SummonPC && GetPetID() != 0) {
//if they have a pet and they are staying in zone, move with them
Mob *p = GetPet();
if(p != nullptr){
p->SetPetOrder(SPO_Follow);
p->GMMove(x+15, y, z); //so it dosent have to run across the map.
}
}