mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[10180] Implement ITEM_FLAGS_NO_EQUIP_COOLDOWN support.
Also server side check for ITEM_FLAGS_INDESTRUCTIBLE
This commit is contained in:
parent
0a2ee023fb
commit
09d61040e6
3 changed files with 11 additions and 1 deletions
|
|
@ -260,6 +260,13 @@ void WorldSession::HandleDestroyItemOpcode( WorldPacket & recv_data )
|
|||
return;
|
||||
}
|
||||
|
||||
// checked at client side and not have server side appropriate error output
|
||||
if (pItem->HasFlag(ITEM_FIELD_FLAGS, ITEM_FLAGS_INDESTRUCTIBLE))
|
||||
{
|
||||
_player->SendEquipError( EQUIP_ERR_CANT_DROP_SOULBOUND, NULL, NULL );
|
||||
return;
|
||||
}
|
||||
|
||||
if(count)
|
||||
{
|
||||
uint32 i_count = count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue