mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Pet: Don't allow to tame pets that have already a owner (#26674)
(cherry picked from commit 8c42b3bd88)
This commit is contained in:
@@ -531,6 +531,12 @@ class spell_hun_tame_beast : public SpellScript
|
||||
|
||||
if (!caster->GetCharmedGUID().IsEmpty())
|
||||
return SPELL_FAILED_ALREADY_HAVE_CHARM;
|
||||
|
||||
if (!target->GetOwnerGUID().IsEmpty())
|
||||
{
|
||||
caster->SendTameFailure(PetTameResult::CreatureAlreadyOwned);
|
||||
return SPELL_FAILED_DONT_REPORT;
|
||||
}
|
||||
}
|
||||
else
|
||||
return SPELL_FAILED_BAD_IMPLICIT_TARGETS;
|
||||
|
||||
Reference in New Issue
Block a user