*Remove no longer needed check in Arcane Potency script - by A.Metaphysical.Drama.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-16 18:05:25 +02:00
parent d005e14faf
commit 974e120235
+9 -12
View File
@@ -917,20 +917,17 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster,
// Arcane Potency // Arcane Potency
if (AuraEffect const * aurEff = caster->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_MAGE, 2120, 0)) if (AuraEffect const * aurEff = caster->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_MAGE, 2120, 0))
{ {
if (roll_chance_i(aurEff->GetAmount())) uint32 spellId = 0;
{
uint32 spellId = 0;
switch (aurEff->GetId()) switch (aurEff->GetId())
{ {
case 31571: spellId = 57529; break; case 31571: spellId = 57529; break;
case 31572: spellId = 57531; break; case 31572: spellId = 57531; break;
default: default:
sLog.outError("Aura::HandleAuraSpecificMods: Unknown rank of Arcane Potency (%d) found", aurEff->GetId()); sLog.outError("Aura::HandleAuraSpecificMods: Unknown rank of Arcane Potency (%d) found", aurEff->GetId());
}
if (spellId)
caster->CastSpell(caster, spellId, true);
} }
if (spellId)
caster->CastSpell(caster, spellId, true);
} }
break; break;
} }