From 67e002ef466cce2d81309d16ed7b6c6b185b3afb Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 9 Jun 2009 12:15:22 +0400 Subject: [PATCH] [7982] Add lost by me check lines in [7980] :( --- src/game/Item.cpp | 6 ++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/game/Item.cpp b/src/game/Item.cpp index 3c8bebef6..205a8d7c7 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -988,6 +988,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: diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 51535cf60..5ac5ed75d 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7981" + #define REVISION_NR "7982" #endif // __REVISION_NR_H__