mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 11:12:25 +00:00
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:
parent
8a0f242fc6
commit
21a1a7bed7
@ -774,6 +774,13 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
|||||||
caster->SetPet(this);
|
caster->SetPet(this);
|
||||||
SetOwnerID(caster->GetID());
|
SetOwnerID(caster->GetID());
|
||||||
SetPetOrder(SPO_Follow);
|
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);
|
SetPetType(petCharmed);
|
||||||
|
|
||||||
if(caster->IsClient()){
|
if(caster->IsClient()){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user