Reset various pet command states

This will prevent charm exploits
This commit is contained in:
Michael Cook (mackal) 2018-08-26 22:19:56 -04:00
parent 67e29a8aa7
commit eb33279701

View File

@ -3928,6 +3928,12 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses)
Mob* tempmob = GetOwner();
SetOwnerID(0);
SetPetType(petNone);
SetHeld(false);
SetGHeld(false);
SetNoCast(false);
SetFocused(false);
SetPetStop(false);
SetPetRegroup(false);
if(tempmob)
{
tempmob->SetPet(0);