aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-04-24 18:12:43 +0200
committerShauren <shauren.trinity@gmail.com>2023-04-24 18:12:43 +0200
commitf9a4104b0606d67c44c596f3cc4996b5988def09 (patch)
treefa225f1ba40b5d12ec574a03b5aa9caf9aae779b
parent706241140ace9d28408726c5e2b972eb89c256b6 (diff)
Scripts/Spells: Use scaled level for taming requirements
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index 6ad9ac9e865..2da3be2e4b0 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -544,7 +544,7 @@ class spell_hun_tame_beast : public SpellScript
if (Creature* target = GetExplTargetUnit()->ToCreature())
{
- if (target->GetLevel() > caster->GetLevel())
+ if (target->GetLevelForTarget(caster) > caster->GetLevel())
return SPELL_FAILED_HIGHLEVEL;
// use SMSG_PET_TAME_FAILURE?