mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
[7735] Not apply enchant mods from broken item (but allow set it duration) Author: DiSlord
--HG-- branch : trunk
This commit is contained in:
@@ -11717,6 +11717,7 @@ void Player::ApplyEnchantment(Item *item,EnchantmentSlot slot,bool apply, bool a
|
||||
if(!ignore_condition && pEnchant->EnchantmentCondition && !((Player*)this)->EnchantmentFitsRequirements(pEnchant->EnchantmentCondition, -1))
|
||||
return;
|
||||
|
||||
if (!item->IsBroken())
|
||||
for (int s=0; s<3; s++)
|
||||
{
|
||||
uint32 enchant_display_type = pEnchant->type[s];
|
||||
|
||||
Reference in New Issue
Block a user