Core/Player: partial revert of m_items handling as it's cause of a exploit

Port From (https://github.com/TrinityCore/TrinityCore/commit/3d1da4957cd7ee3320eed089ad213af09050ade1)
This commit is contained in:
hondacrx
2021-09-24 10:26:13 -04:00
parent 6cf76372ac
commit b2b482a1fe
2 changed files with 5 additions and 13 deletions
+1 -1
View File
@@ -295,7 +295,7 @@ namespace Game.Entities
{
ItemTemplate proto = item.GetTemplate();
WeaponAttackType attType = GetAttackBySlot(slot, proto.GetInventoryType());
if (attType == WeaponAttackType.Max)
if (!IsInFeralForm() && apply && !CanUseAttackType(attType))
return;
float damage = 0.0f;