mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[7982] Add lost by me check lines in [7980] :(
This commit is contained in:
parent
28680fccd6
commit
67e002ef46
2 changed files with 7 additions and 1 deletions
|
|
@ -988,6 +988,12 @@ bool Item::IsBindedNotWith( Player const* player ) const
|
||||||
|
|
||||||
bool ItemRequiredTarget::IsFitToRequirements( Unit* pUnitTarget ) const
|
bool ItemRequiredTarget::IsFitToRequirements( Unit* pUnitTarget ) const
|
||||||
{
|
{
|
||||||
|
if(pUnitTarget->GetTypeId() != TYPEID_UNIT)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if(pUnitTarget->GetEntry() != m_uiTargetEntry)
|
||||||
|
return false;
|
||||||
|
|
||||||
switch(m_uiType)
|
switch(m_uiType)
|
||||||
{
|
{
|
||||||
case ITEM_TARGET_TYPE_CREATURE:
|
case ITEM_TARGET_TYPE_CREATURE:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7981"
|
#define REVISION_NR "7982"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue