Client tracks pet sit/stand - force new pets to stand rather than use client (#1155)

Co-authored-by: Noudess <noudess@gmail.com>
This commit is contained in:
Paul Coene 2020-12-22 19:05:02 -05:00 committed by GitHub
parent 8a0f242fc6
commit 21a1a7bed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -774,6 +774,13 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
caster->SetPet(this);
SetOwnerID(caster->GetID());
SetPetOrder(SPO_Follow);
SetAppearance(eaStanding);
// Client has saved previous pet sit/stand - make all new pets
// stand on charm.
if (caster->IsClient()) {
caster->CastToClient()->SetPetCommandState(PET_BUTTON_SIT,0);
}
SetPetType(petCharmed);
if(caster->IsClient()){