mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Unit): fix Dual Wield for more creatures... (#20047)
* non-weapons should return true * remove shapeshift check
This commit is contained in:
@@ -1065,9 +1065,6 @@ public:
|
|||||||
inline bool HasRangedWeaponForAttack() const { return HasWeaponForAttack(RANGED_ATTACK); }
|
inline bool HasRangedWeaponForAttack() const { return HasWeaponForAttack(RANGED_ATTACK); }
|
||||||
[[nodiscard]] bool CanUseAttackType(uint8 attacktype) const
|
[[nodiscard]] bool CanUseAttackType(uint8 attacktype) const
|
||||||
{
|
{
|
||||||
if (IsAttackSpeedOverridenShapeShift())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
switch (attacktype)
|
switch (attacktype)
|
||||||
{
|
{
|
||||||
case BASE_ATTACK:
|
case BASE_ATTACK:
|
||||||
|
|||||||
Reference in New Issue
Block a user