Core/Items: implement some helper methods for easier readability (#24113)

(cherry picked from commit 573ddf4d22564d022e30807c5ba2c6eb1a2c8b2e)
This commit is contained in:
ForesterDev
2021-12-21 00:46:13 +01:00
committed by Shauren
parent e882635774
commit 9124fd1f1f
22 changed files with 112 additions and 107 deletions
+1 -1
View File
@@ -394,7 +394,7 @@ void Player::UpdateAttackPowerAndDamage(bool ranged)
{
UpdateDamagePhysical(BASE_ATTACK);
if (Item* offhand = GetWeaponForAttack(OFF_ATTACK, true))
if (CanDualWield() || offhand->GetTemplate()->GetFlags3() & ITEM_FLAG3_ALWAYS_ALLOW_DUAL_WIELD)
if (CanDualWield() || offhand->GetTemplate()->HasFlag(ITEM_FLAG3_ALWAYS_ALLOW_DUAL_WIELD))
UpdateDamagePhysical(OFF_ATTACK);
if (HasAuraType(SPELL_AURA_OVERRIDE_SPELL_POWER_BY_AP_PCT))