mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Player: Fix logic fail in ApplyEquipCooldown
This commit is contained in:
@@ -23175,10 +23175,9 @@ void Player::SendInstanceResetWarning(uint32 mapid, Difficulty difficulty, uint3
|
||||
|
||||
void Player::ApplyEquipCooldown(Item* pItem)
|
||||
{
|
||||
if (pItem->HasFlag(ITEM_FIELD_FLAGS, ITEM_FLAG_NO_EQUIP_COOLDOWN))
|
||||
return;
|
||||
|
||||
ItemTemplate const* proto = pItem->GetTemplate();
|
||||
if (proto->GetFlags() & ITEM_FLAG_NO_EQUIP_COOLDOWN)
|
||||
return;
|
||||
|
||||
for (uint8 i = 0; i < proto->Effects.size(); ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user