[10180] Implement ITEM_FLAGS_NO_EQUIP_COOLDOWN support.

Also server side check for ITEM_FLAGS_INDESTRUCTIBLE
This commit is contained in:
VladimirMangos 2010-07-11 21:33:16 +04:00
parent 0a2ee023fb
commit 09d61040e6
3 changed files with 11 additions and 1 deletions

View file

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

View file

@ -19576,6 +19576,9 @@ void Player::SendInstanceResetWarning( uint32 mapid, Difficulty difficulty, uint
void Player::ApplyEquipCooldown( Item * pItem )
{
if (pItem->HasFlag(ITEM_FIELD_FLAGS, ITEM_FLAGS_NO_EQUIP_COOLDOWN))
return;
for(int i = 0; i < MAX_ITEM_PROTO_SPELLS; ++i)
{
_Spell const& spellData = pItem->GetProto()->Spells[i];

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10179"
#define REVISION_NR "10180"
#endif // __REVISION_NR_H__