aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-10-21 19:23:32 +0200
committerShauren <shauren.trinity@gmail.com>2025-09-28 21:38:32 +0200
commitd144724e2fd8a74a3e896751dc9c866b3932f815 (patch)
treee1f3c155560705bbd0f7dea15351b14602354454 /src/server/scripts/Spells
parent3059fcd70a01bccdf8ea6dd1ae7bedefd737d558 (diff)
Core/Entities: First batch of removing implicit conversions of ObjectGuid to uint64
(cherry picked from commit 9cc7044546eaaaf4fd7a999c5e074ad0ea3d47ef)
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index 623822f112c..db48a98343e 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -1175,10 +1175,10 @@ class spell_hun_tame_beast : public SpellScript
}
}
- if (caster->GetCharmedGUID())
+ if (!caster->GetCharmedGUID().IsEmpty())
return SPELL_FAILED_ALREADY_HAVE_CHARM;
- if (target->GetOwnerGUID())
+ if (!target->GetOwnerGUID().IsEmpty())
{
caster->SendTameFailure(PETTAME_CREATUREALREADYOWNED);
return SPELL_FAILED_DONT_REPORT;