BFA Update (still lots of testing to do tho)
This commit is contained in:
@@ -582,13 +582,11 @@ namespace Game
|
||||
if (!GetPlayer().IsInWorld)
|
||||
return;
|
||||
|
||||
// pet/charmed
|
||||
Creature pet = ObjectAccessor.GetCreatureOrPetOrVehicle(GetPlayer(), packet.Pet);
|
||||
if (pet)
|
||||
if (pet && pet.ToPet() && pet.ToPet().getPetType() == PetType.Hunter)
|
||||
{
|
||||
if (pet.IsPet())
|
||||
GetPlayer().RemovePet(pet.ToPet(), PetSaveMode.AsDeleted);
|
||||
else if (pet.GetGUID() == GetPlayer().GetCharmGUID())
|
||||
GetPlayer().StopCastingCharm();
|
||||
_player.RemovePet((Pet)pet, PetSaveMode.AsDeleted);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user