refactor(Core): use the WeaponAttackType enum (#23457)

This commit is contained in:
Tereneckla
2025-11-01 18:26:18 +00:00
committed by GitHub
parent 97543ba50f
commit e35a5ae049
7 changed files with 24 additions and 22 deletions

View File

@@ -967,7 +967,7 @@ public:
inline bool HasMainhandWeaponForAttack() const { return HasWeaponForAttack(BASE_ATTACK); }
inline bool HasOffhandWeaponForAttack() const { return HasWeaponForAttack(OFF_ATTACK); }
inline bool HasRangedWeaponForAttack() const { return HasWeaponForAttack(RANGED_ATTACK); }
[[nodiscard]] bool CanUseAttackType(uint8 attacktype) const
[[nodiscard]] bool CanUseAttackType(WeaponAttackType attacktype) const
{
switch (attacktype)
{