mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
fix(Core/Items): items with charges should not remove on item unequip its … (#7064)
- Closes #5716
This commit is contained in:
@@ -6904,8 +6904,8 @@ void Player::ApplyItemEquipSpell(Item* item, bool apply, bool form_change)
|
||||
}
|
||||
else
|
||||
{
|
||||
// Auras activated by use should not be removed on unequip
|
||||
if (spellData.SpellTrigger == ITEM_SPELLTRIGGER_ON_USE)
|
||||
// Auras activated by use should not be removed on unequip (with no charges)
|
||||
if (spellData.SpellTrigger == ITEM_SPELLTRIGGER_ON_USE && spellData.SpellCharges <= 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user