mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
fix(Scripts/Spell): don't allow to tame an already owned creature (#9005)
This commit is contained in:
@@ -946,6 +946,12 @@ class spell_hun_tame_beast : public SpellScript
|
||||
player->SendTameFailure(PET_TAME_ANOTHER_SUMMON_ACTIVE);
|
||||
return SPELL_FAILED_DONT_REPORT;
|
||||
}
|
||||
|
||||
if (target->GetOwnerGUID())
|
||||
{
|
||||
player->SendTameFailure(PET_TAME_CREATURE_ALREADY_OWNED);
|
||||
return SPELL_FAILED_DONT_REPORT;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user