Core/Creature: Fix another pet assert
Port From (https://github.com/TrinityCore/TrinityCore/commit/18d1f0c964a17cc79732eb20958b9c594ebd3628)
This commit is contained in:
@@ -241,8 +241,7 @@ namespace Game
|
||||
if (pet.ToPet().GetPetType() == PetType.Hunter)
|
||||
GetPlayer().RemovePet(pet.ToPet(), PetSaveMode.AsDeleted);
|
||||
else
|
||||
//dismissing a summoned pet is like killing them (this prevents returning a soulshard...)
|
||||
pet.SetDeathState(DeathState.Corpse);
|
||||
GetPlayer().RemovePet(pet.ToPet(), PetSaveMode.NotInSlot);
|
||||
}
|
||||
else if (pet.HasUnitTypeMask(UnitTypeMask.Minion))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user