Core/Spells: Fixed unapplying rockbiter weapon
Port From (https://github.com/TrinityCore/TrinityCore/commit/ba2586c92f87230c6380d7a2fe2d52c52471b9cb)
This commit is contained in:
@@ -578,7 +578,7 @@ namespace Game.Entities
|
||||
{
|
||||
WeaponAttackType attackType = Player.GetAttackBySlot(item.GetSlot(), item.GetTemplate().GetInventoryType());
|
||||
if (attackType != WeaponAttackType.Max)
|
||||
UpdateDamageDoneMods(attackType);
|
||||
UpdateDamageDoneMods(attackType, apply ? -1 : (int)slot);
|
||||
}
|
||||
break;
|
||||
case ItemEnchantmentType.EquipSpell:
|
||||
@@ -795,7 +795,7 @@ namespace Game.Entities
|
||||
{
|
||||
WeaponAttackType attackType = Player.GetAttackBySlot(item.GetSlot(), item.GetTemplate().GetInventoryType());
|
||||
if (attackType != WeaponAttackType.Max)
|
||||
UpdateDamageDoneMods(attackType);
|
||||
UpdateDamageDoneMods(attackType, apply ? -1 : (int)slot);
|
||||
break;
|
||||
}
|
||||
case ItemEnchantmentType.UseSpell:
|
||||
|
||||
Reference in New Issue
Block a user