mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-18 19:02:29 +00:00
[Bug Fix] Fix charmed pets to follow when charmed. (#3488)
* [Bug Fix] Fix charmed pets to follow when charmed. * Added STOP (missed this on a local merge)
This commit is contained in:
parent
809b3b6099
commit
47be17e2af
@ -788,9 +788,13 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
SetPetOrder(SPO_Follow);
|
||||
SetAppearance(eaStanding);
|
||||
// Client has saved previous pet sit/stand - make all new pets
|
||||
// stand on charm.
|
||||
// stand and follow on charm.
|
||||
if (caster->IsClient()) {
|
||||
caster->CastToClient()->SetPetCommandState(PET_BUTTON_SIT,0);
|
||||
Client *cpet = caster->CastToClient();
|
||||
cpet->SetPetCommandState(PET_BUTTON_SIT,0);
|
||||
cpet->SetPetCommandState(PET_BUTTON_FOLLOW, 1);
|
||||
cpet->SetPetCommandState(PET_BUTTON_GUARD, 0);
|
||||
cpet->SetPetCommandState(PET_BUTTON_STOP, 0);
|
||||
}
|
||||
|
||||
SetPetType(petCharmed);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user