mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[10784] Restrict items with generated loot really to single character only.
This commit is contained in:
parent
525836734c
commit
21710cf05d
2 changed files with 5 additions and 5 deletions
|
|
@ -1058,10 +1058,6 @@ Item* Item::CloneItem( uint32 count, Player const* player ) const
|
||||||
|
|
||||||
bool Item::IsBindedNotWith( Player const* player ) const
|
bool Item::IsBindedNotWith( Player const* player ) const
|
||||||
{
|
{
|
||||||
// not binded item
|
|
||||||
if (!IsSoulBound())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// own item
|
// own item
|
||||||
if (GetOwnerGuid() == player->GetObjectGuid())
|
if (GetOwnerGuid() == player->GetObjectGuid())
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -1070,6 +1066,10 @@ bool Item::IsBindedNotWith( Player const* player ) const
|
||||||
if (HasGeneratedLoot())
|
if (HasGeneratedLoot())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
// not binded item
|
||||||
|
if (!IsSoulBound())
|
||||||
|
return false;
|
||||||
|
|
||||||
// not BOA item case
|
// not BOA item case
|
||||||
if (!IsBoundAccountWide())
|
if (!IsBoundAccountWide())
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10783"
|
#define REVISION_NR "10784"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue