mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-12 08:02:25 +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);
|
SetPetOrder(SPO_Follow);
|
||||||
SetAppearance(eaStanding);
|
SetAppearance(eaStanding);
|
||||||
// Client has saved previous pet sit/stand - make all new pets
|
// Client has saved previous pet sit/stand - make all new pets
|
||||||
// stand on charm.
|
// stand and follow on charm.
|
||||||
if (caster->IsClient()) {
|
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);
|
SetPetType(petCharmed);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user