Core/Items: Use correct error message when swapping weapons in combat too quickly
Port From (https://github.com/TrinityCore/TrinityCore/commit/4bc02e3744c67fc4ccd5447f3290a4710c6b1cb5)
This commit is contained in:
@@ -4940,7 +4940,7 @@ namespace Game.Entities
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (IsInCombat() && (pProto.GetClass() == ItemClass.Weapon || pProto.GetInventoryType() == InventoryType.Relic) && m_weaponChangeTimer != 0)
|
if (IsInCombat() && (pProto.GetClass() == ItemClass.Weapon || pProto.GetInventoryType() == InventoryType.Relic) && m_weaponChangeTimer != 0)
|
||||||
return InventoryResult.ClientLockedOut; // maybe exist better err
|
return InventoryResult.ItemCooldown;
|
||||||
|
|
||||||
if (IsNonMeleeSpellCast(false))
|
if (IsNonMeleeSpellCast(false))
|
||||||
return InventoryResult.ClientLockedOut;
|
return InventoryResult.ClientLockedOut;
|
||||||
|
|||||||
Reference in New Issue
Block a user