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;
|
crit_bonus -= damage;
|
||||||
|
|
||||||
if (damage > uint32(crit_bonus))
|
|
||||||
{
|
|
||||||
// adds additional damage to critBonus (from talents)
|
// adds additional damage to critBonus (from talents)
|
||||||
if (Player* modOwner = caster->GetSpellModOwner())
|
if (Player* modOwner = caster->GetSpellModOwner())
|
||||||
modOwner->ApplySpellMod(spellProto->Id, SPELLMOD_CRIT_DAMAGE_BONUS, crit_bonus);
|
modOwner->ApplySpellMod(spellProto->Id, SPELLMOD_CRIT_DAMAGE_BONUS, crit_bonus);
|
||||||
}
|
|
||||||
|
|
||||||
crit_bonus += damage;
|
crit_bonus += damage;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7482,6 +7482,21 @@ void SpellMgr::LoadDbcDataCorrections()
|
|||||||
spellInfo->RangeIndex = 3; // 20y
|
spellInfo->RangeIndex = 3; // 20y
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Mortal Shots
|
||||||
|
ApplySpellFix({ 19485, 19487, 19488, 19489, 19490 }, [](SpellEntry* spellInfo)
|
||||||
|
{
|
||||||
|
spellInfo->EffectSpellClassMask[EFFECT_0][EFFECT_0] |= 0x00004000;
|
||||||
|
spellInfo->Effect[EFFECT_1] = 0;
|
||||||
|
});
|
||||||
|
|
||||||
|
// Item - Death Knight T9 Melee 4P Bonus
|
||||||
|
// Item - Hunter T9 2P Bonus
|
||||||
|
// Item - Paladin T9 Retribution 2P Bonus (Righteous Vengeance)
|
||||||
|
ApplySpellFix({ 67118, 67150, 67188 }, [](SpellEntry* spellInfo)
|
||||||
|
{
|
||||||
|
spellInfo->Effect[EFFECT_1] = 0;
|
||||||
|
});
|
||||||
|
|
||||||
for (uint32 i = 0; i < sSpellStore.GetNumRows(); ++i)
|
for (uint32 i = 0; i < sSpellStore.GetNumRows(); ++i)
|
||||||
{
|
{
|
||||||
SpellEntry* spellInfo = (SpellEntry*)sSpellStore.LookupEntry(i);
|
SpellEntry* spellInfo = (SpellEntry*)sSpellStore.LookupEntry(i);
|
||||||
|
|||||||
Reference in New Issue
Block a user