Core/Spells:

*fixed Careful Aim talent
*fixed Concussive Barrage range to allow it to get applied
*fixed Termination talent
*fixed Piercing Shots talent
*fixed Master Marksman talent
*fixed Bombardment talent
This commit is contained in:
Ovalord committed 2017-12-22 23:30:45 +01:00
1 parent 9783b86dae
commit 7248c00f59
4 files changed
+258 -10

No files matched your search

+24
View File
@@ -7131,6 +7131,30 @@ float Unit::GetUnitSpellCriticalChance(Unit* victim, SpellInfo const* spellProto
{
crit_chance += GetUnitCriticalChance(attackType, victim);
crit_chance += GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, schoolMask);
switch (spellProto->SpellFamilyName)
{
case SPELLFAMILY_HUNTER:
{
// Careful Aim
if (victim->GetHealthPct() >= 90)
{
switch (spellProto->Id)
{
case 56641: // Steady Shot
case 77767: // Cobra Shot
case 19434: // Aimed Shot
case 82928: // Aimed Shot!
if (AuraEffect* aurEff = GetDummyAuraEffect(SPELLFAMILY_HUNTER, 2222, 0))
crit_chance += aurEff->GetAmount();
break;
default:
break;
}
}
break;
}
}
}
break;
}