mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 18:41:29 +00:00
Reset various pet command states
This will prevent charm exploits
This commit is contained in:
parent
67e29a8aa7
commit
eb33279701
@ -3928,6 +3928,12 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses)
|
|||||||
Mob* tempmob = GetOwner();
|
Mob* tempmob = GetOwner();
|
||||||
SetOwnerID(0);
|
SetOwnerID(0);
|
||||||
SetPetType(petNone);
|
SetPetType(petNone);
|
||||||
|
SetHeld(false);
|
||||||
|
SetGHeld(false);
|
||||||
|
SetNoCast(false);
|
||||||
|
SetFocused(false);
|
||||||
|
SetPetStop(false);
|
||||||
|
SetPetRegroup(false);
|
||||||
if(tempmob)
|
if(tempmob)
|
||||||
{
|
{
|
||||||
tempmob->SetPet(0);
|
tempmob->SetPet(0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user