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:
1 parent
9783b86dae
commit
7248c00f59
4 files changed
+258
-10
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user