mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[7735] Not apply enchant mods from broken item (but allow set it duration)
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
30992d0ac3
commit
57fce910e0
2 changed files with 2 additions and 1 deletions
|
|
@ -11437,6 +11437,7 @@ void Player::ApplyEnchantment(Item *item,EnchantmentSlot slot,bool apply, bool a
|
||||||
if(!ignore_condition && pEnchant->EnchantmentCondition && !((Player*)this)->EnchantmentFitsRequirements(pEnchant->EnchantmentCondition, -1))
|
if(!ignore_condition && pEnchant->EnchantmentCondition && !((Player*)this)->EnchantmentFitsRequirements(pEnchant->EnchantmentCondition, -1))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!item->IsBroken())
|
||||||
for (int s=0; s<3; s++)
|
for (int s=0; s<3; s++)
|
||||||
{
|
{
|
||||||
uint32 enchant_display_type = pEnchant->type[s];
|
uint32 enchant_display_type = pEnchant->type[s];
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7734"
|
#define REVISION_NR "7735"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue