mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
fix(Core/Spells) T9 2p Hunter bonus vs Mortal Shots. (#9246)
Fixed getting bonus damage from critical strikes for melee/ranged DoT spells. Fixes #8859
This commit is contained in:
@@ -11659,12 +11659,9 @@ uint32 Unit::SpellCriticalDamageBonus(Unit const* caster, SpellInfo const* spell
|
||||
|
||||
crit_bonus -= damage;
|
||||
|
||||
if (damage > uint32(crit_bonus))
|
||||
{
|
||||
// adds additional damage to critBonus (from talents)
|
||||
if (Player* modOwner = caster->GetSpellModOwner())
|
||||
modOwner->ApplySpellMod(spellProto->Id, SPELLMOD_CRIT_DAMAGE_BONUS, crit_bonus);
|
||||
}
|
||||
// adds additional damage to critBonus (from talents)
|
||||
if (Player* modOwner = caster->GetSpellModOwner())
|
||||
modOwner->ApplySpellMod(spellProto->Id, SPELLMOD_CRIT_DAMAGE_BONUS, crit_bonus);
|
||||
|
||||
crit_bonus += damage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user