diff options
author | Ovahlord <dreadkiller@gmx.de> | 2024-08-06 12:00:21 +0200 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-08-06 12:00:21 +0200 |
commit | 577f6d151650a329232a37f6bd3229fc1707f861 (patch) | |
tree | f48e3961b5952585e416d87fb38661c4c60b9ac9 /src | |
parent | c574ba80f68cea2d0f68d260afed57b901a9867c (diff) |
Core/Units: use the same misc value logic when calculating unit mods for SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE as the aura effect handler
*this fixes some total stat pct auras not correctly showing stat changes (such as Wizardry)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 3571126b444..2ef96e3b406 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -5158,7 +5158,7 @@ void Unit::UpdateStatBuffMod(Stats stat) // total_pct multiplier multiplier = GetTotalAuraMultiplier(SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE, [stat](AuraEffect const* aurEff) -> bool { - if (aurEff->GetMiscValue() == -1 || aurEff->GetMiscValue() == stat) + if (!aurEff->GetMiscValueB() || aurEff->GetMiscValueB() & (1 << stat)) return true; return false; }); |