Fix double ap calculation for ranged class

This commit is contained in:
Yunfan Li
2024-08-17 00:58:47 +08:00
parent 2782e0dc6e
commit 0be18889e5

View File

@@ -504,7 +504,8 @@ void StatsCollector::HandleApplyAura(const SpellEffectInfo& effectInfo, float mu
break; break;
} }
case SPELL_AURA_MOD_ATTACK_POWER: case SPELL_AURA_MOD_ATTACK_POWER:
stats[STATS_TYPE_ATTACK_POWER] += val * multiplier; if (type_ == CollectorType::MELEE)
stats[STATS_TYPE_ATTACK_POWER] += val * multiplier;
break; break;
case SPELL_AURA_MOD_RANGED_ATTACK_POWER: case SPELL_AURA_MOD_RANGED_ATTACK_POWER:
if (type_ == CollectorType::RANGED) if (type_ == CollectorType::RANGED)