From fd1cb0f43f497f050a50968b9aa6a4b3d30d632b Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 29 May 2022 15:36:35 -0400 Subject: [PATCH] Core/Pet: Don't allow to tame pets that have already a owner Port From (https://github.com/TrinityCore/TrinityCore/commit/6fd7cd9dc9ca2f3ce2e90d719b292f0249972f93) --- Source/Scripts/Spells/Hunter.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Scripts/Spells/Hunter.cs b/Source/Scripts/Spells/Hunter.cs index dfc17237a..0ffd59a64 100644 --- a/Source/Scripts/Spells/Hunter.cs +++ b/Source/Scripts/Spells/Hunter.cs @@ -449,6 +449,12 @@ namespace Scripts.Spells.Hunter if (!caster.GetCharmedGUID().IsEmpty()) return SpellCastResult.AlreadyHaveCharm; + + if (!target.GetOwnerGUID().IsEmpty()) + { + caster.SendTameFailure(PetTameResult.CreatureAlreadyOwned); + return SpellCastResult.DontReport; + } } else return SpellCastResult.BadImplicitTargets;