Core/Spell: Shattered Barrier should obey proc chance of talent ranks

This commit is contained in:
idostyle@zoit
2011-10-05 14:41:10 +02:00
parent ce54465d19
commit ae63e8b4f6
+2 -1
View File
@@ -1347,7 +1347,8 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b
if (removeMode == AURA_REMOVE_BY_ENEMY_SPELL && GetSpellInfo()->SpellFamilyFlags[1] & 0x1) if (removeMode == AURA_REMOVE_BY_ENEMY_SPELL && GetSpellInfo()->SpellFamilyFlags[1] & 0x1)
{ {
// Shattered Barrier // Shattered Barrier
if (caster->GetDummyAuraEffect(SPELLFAMILY_MAGE, 2945, 0)) if (AuraEffect * dummy = caster->GetDummyAuraEffect(SPELLFAMILY_MAGE, 2945, 0))
if (roll_chance_i(dummy->GetSpellInfo()->ProcChance))
caster->CastSpell(target, 55080, true, NULL, GetEffect(0)); caster->CastSpell(target, 55080, true, NULL, GetEffect(0));
} }
break; break;