BFA Update (still lots of testing to do tho)

This commit is contained in:
hondacrx
2018-12-10 12:46:25 -05:00
parent 468b053946
commit 8e20114e10
256 changed files with 35613 additions and 10459 deletions
+3 -5
View File
@@ -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);
}
}