[7898] Improve client error output at different mail send errors, cleanup code.

This commit is contained in:
VladimirMangos 2009-05-27 01:12:44 +04:00
parent 83b2eb2bba
commit d2e25491a2
9 changed files with 72 additions and 55 deletions

View file

@ -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;
}