Core/Spells: fix extra damage from crits for talents and equipment effects Closes #6647
This commit is contained in:
1 parent
fb3a360575
commit
9f09713b3e
1 file changed
+6
-3
@@ -11086,9 +11086,12 @@ uint32 Unit::SpellCriticalDamageBonus(SpellInfo const* spellProto, uint32 damage
|
||||
|
||||
crit_bonus -= damage;
|
||||
|
||||
// adds additional damage to crit_bonus (from talents)
|
||||
if (Player* modOwner = GetSpellModOwner())
|
||||
modOwner->ApplySpellMod(spellProto->Id, SPELLMOD_CRIT_DAMAGE_BONUS, crit_bonus);
|
||||
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);
|
||||
}
|
||||
|
||||
crit_bonus += damage;
|
||||
|
||||
|
||||
Reference in new issue
Block a user