mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 00:06:11 +00:00
fix(Core/Unit): add Dual Wield 'auto' to improve scripting (#23078)
This commit is contained in:
@@ -3800,7 +3800,7 @@ bool Player::resetTalents(bool noResetCost)
|
||||
if (m_canTitanGrip)
|
||||
SetCanTitanGrip(false);
|
||||
// xinef: remove dual wield if player does not have dual wield spell (shamans)
|
||||
if (!HasSpell(674) && m_canDualWield)
|
||||
if (!HasSpell(674) && CanDualWield())
|
||||
SetCanDualWield(false);
|
||||
|
||||
AutoUnequipOffhandIfNeed();
|
||||
@@ -15270,7 +15270,7 @@ void Player::ActivateSpec(uint8 spec)
|
||||
if (!HasTalent(46917, GetActiveSpec()) && m_canTitanGrip)
|
||||
SetCanTitanGrip(false);
|
||||
// xinef: remove dual wield if player does not have dual wield spell (shamans)
|
||||
if (!HasSpell(674) && m_canDualWield)
|
||||
if (!HasSpell(674) && CanDualWield())
|
||||
SetCanDualWield(false);
|
||||
|
||||
AutoUnequipOffhandIfNeed();
|
||||
|
||||
Reference in New Issue
Block a user