aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobingad <robingad@rambler.ru>2021-01-29 11:52:38 +0200
committerGitHub <noreply@github.com>2021-01-29 10:52:38 +0100
commit22d6ea3620def585c07262d1700d6f67e95eb103 (patch)
tree3268998dd9aa686ee6d9279d7fea63bb1528cefa
parentdb6eb694656c58a817a965e2f5c85874e9c92d12 (diff)
Core/Auras: Fixed stacking SPELL_AURA_MOD_CRIT_DAMAGE_BONUS with SPELLMOD_CRIT_DAMAGE_BONUS (#25978)
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index f89a4d7e485..cfc05a31f23 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -7098,12 +7098,9 @@ uint32 Unit::SpellCriticalDamageBonus(SpellInfo const* spellProto, uint32 damage
crit_bonus -= damage;
- if (damage > uint32(crit_bonus))
- {
- // adds additional damage to critBonus (from talents)
- if (Player* modOwner = GetSpellModOwner())
- modOwner->ApplySpellMod(spellProto->Id, SPELLMOD_CRIT_DAMAGE_BONUS, crit_bonus);
- }
+ // adds additional damage to critBonus (from talents)
+ if (Player* modOwner = GetSpellModOwner())
+ modOwner->ApplySpellMod(spellProto->Id, SPELLMOD_CRIT_DAMAGE_BONUS, crit_bonus);
crit_bonus += damage;