From 587112bb1d5694e9d4708833680d6af2016250b5 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 25 Aug 2024 17:57:00 +0200 Subject: [PATCH] fixing humanoids and undead being pickpocketable when they shouldnt be --- src/game/Spells/Spell.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/Spells/Spell.cpp b/src/game/Spells/Spell.cpp index 5aa77f2d33a..b418fabaf35 100644 --- a/src/game/Spells/Spell.cpp +++ b/src/game/Spells/Spell.cpp @@ -6692,8 +6692,7 @@ SpellCastResult Spell::CheckCast(bool strict) if (!target || target->GetOwnerGuid().IsPlayer()) return SPELL_FAILED_BAD_TARGETS; - if (!target->GetCreatureInfo()->pickpocket_loot_id && - !(target->GetCreatureTypeMask() & CREATURE_TYPEMASK_HUMANOID_OR_UNDEAD)) + if (!target->GetCreatureInfo()->pickpocket_loot_id) return SPELL_FAILED_TARGET_NO_POCKETS; break;