diff options
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r-- | src/game/Item.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp index 06268f2fef7..3be555cbaba 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -1002,6 +1002,12 @@ bool Item::IsBindedNotWith( Player const* player ) const bool ItemRequiredTarget::IsFitToRequirements( Unit* pUnitTarget ) const { + if(pUnitTarget->GetTypeId() != TYPEID_UNIT) + return false; + + if(pUnitTarget->GetEntry() != m_uiTargetEntry) + return false; + switch(m_uiType) { case ITEM_TARGET_TYPE_CREATURE: |