mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22: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;
|
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)
|
if(count)
|
||||||
{
|
{
|
||||||
uint32 i_count = count;
|
uint32 i_count = count;
|
||||||
|
|
|
||||||
|
|
@ -19576,6 +19576,9 @@ void Player::SendInstanceResetWarning( uint32 mapid, Difficulty difficulty, uint
|
||||||
|
|
||||||
void Player::ApplyEquipCooldown( Item * pItem )
|
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)
|
for(int i = 0; i < MAX_ITEM_PROTO_SPELLS; ++i)
|
||||||
{
|
{
|
||||||
_Spell const& spellData = pItem->GetProto()->Spells[i];
|
_Spell const& spellData = pItem->GetProto()->Spells[i];
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10179"
|
#define REVISION_NR "10180"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue