Skip to content

Commit

Permalink
* Disallowed sending wrapped items as COD
Browse files Browse the repository at this point in the history
  • Loading branch information
arrai committed Oct 22, 2008
1 parent b49bc1b commit 9d1ac13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/game/Mail.cpp
Expand Up @@ -190,6 +190,12 @@ void WorldSession::HandleSendMail(WorldPacket & recv_data )
pl->SendMailResult(0, 0, MAIL_ERR_INTERNAL_ERROR);
return;
}

if(COD && mailItem.item->HasFlag(ITEM_FIELD_FLAGS, ITEM_FLAGS_WRAPPED))
{
pl->SendMailResult(0, 0, MAIL_ERR_CANT_SEND_WRAPPED_COD);
return;
}
}
}
pl->SendMailResult(0, 0, MAIL_OK);
Expand Down

0 comments on commit 9d1ac13

Please sign in to comment.