mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 19:37:02 +00:00
[7898] Improve client error output at different mail send errors, cleanup code.
This commit is contained in:
parent
83b2eb2bba
commit
d2e25491a2
9 changed files with 72 additions and 55 deletions
|
|
@ -698,16 +698,16 @@ bool Item::IsEquipped() const
|
|||
|
||||
bool Item::CanBeTraded() const
|
||||
{
|
||||
if(IsSoulBound())
|
||||
if (IsSoulBound())
|
||||
return false;
|
||||
if(IsBag() && (Player::IsBagPos(GetPos()) || !((Bag const*)this)->IsEmpty()) )
|
||||
if (IsBag() && (Player::IsBagPos(GetPos()) || !((Bag const*)this)->IsEmpty()) )
|
||||
return false;
|
||||
|
||||
if(Player* owner = GetOwner())
|
||||
if (Player* owner = GetOwner())
|
||||
{
|
||||
if(owner->CanUnequipItem(GetPos(),false) != EQUIP_ERR_OK )
|
||||
if (owner->CanUnequipItem(GetPos(),false) != EQUIP_ERR_OK )
|
||||
return false;
|
||||
if(owner->GetLootGUID()==GetGUID())
|
||||
if (owner->GetLootGUID()==GetGUID())
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue