From e25a3e5e5feb024a299c59d9a32055c86c50ed46 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Tue, 19 Aug 2025 21:38:12 -0400 Subject: [PATCH] Core/Spells: Fixed Revive Pet not being usable if pet corpse is still in world Port From (https://github.com/TrinityCore/TrinityCore/commit/6daf472e8131fdb9993a87483106af513e0ec398) --- Source/Game/Spells/Spell.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index f930e18d3..12c3237e2 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -5674,13 +5674,16 @@ namespace Game.Spells Pet pet = playerCaster.GetPet(); if (pet != null && pet.IsAlive()) + { return SpellCastResult.AlreadyHaveSummon; - - PetStable petStable = playerCaster.GetPetStable(); - var deadPetInfo = petStable.ActivePets.FirstOrDefault(petInfo => petInfo?.Health == 0); - - if (deadPetInfo == null) - return SpellCastResult.BadTargets; + } + else + { + PetStable petStable = playerCaster.GetPetStable(); + var deadPetInfo = petStable.ActivePets.FirstOrDefault(petInfo => petInfo?.Health == 0); + if (deadPetInfo == null) + return SpellCastResult.BadTargets; + } break; }