Core/Items: implement some helper methods for easier readability (#24113)
(cherry picked from commit 573ddf4d22564d022e30807c5ba2c6eb1a2c8b2e)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user