aboutsummaryrefslogtreecommitdiff
path: root/src/game/Item.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-06-10 08:45:45 +0200
committerMachiavelli <none@none>2009-06-10 08:45:45 +0200
commitee9beadbc20d24ec11346858db36c029c9c04b90 (patch)
treead8d5f89f9b7e1418c5bc00990370224b91453f3 /src/game/Item.cpp
parentf137dc02ecadb515928655dd6603f33187731fec (diff)
parentc9d9ae1e491243f82be5ac84dc2ad51dfbae35eb (diff)
Merge
--HG-- branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r--src/game/Item.cpp6
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: