Core/Pets: Fixed crash happening when current pet is forcibly removed while being temporarily unsummoned (like on a mount)
Port From (https://github.com/TrinityCore/TrinityCore/commit/688d1d9533bc42dfd5684f30b8e1c2deff2795c4)
This commit is contained in:
@@ -3351,7 +3351,7 @@ namespace Game.Spells
|
||||
Pet pet = unitTarget.ToPet();
|
||||
|
||||
ExecuteLogEffectUnsummonObject(effectInfo.Effect, pet);
|
||||
pet.GetOwner().RemovePet(pet, PetSaveMode.NotInSlot);
|
||||
pet.Remove(PetSaveMode.NotInSlot);
|
||||
}
|
||||
|
||||
[SpellEffectHandler(SpellEffectName.SummonObjectSlot1)]
|
||||
|
||||
Reference in New Issue
Block a user