[11992] Implement spells 69140, 69147 and 72705

Original author Michalpolko and others

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Xfurry 2012-05-09 23:49:23 +02:00 committed by Schmoozerd
parent 3c3db7311c
commit 5dbef19097
3 changed files with 29 additions and 1 deletions

View file

@ -7624,6 +7624,22 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
unitTarget->CastSpell(m_caster, 69023, true);
return;
}
case 69140: // Coldflame (random target selection)
{
if (!unitTarget)
return;
m_caster->CastSpell(unitTarget, m_spellInfo->CalculateSimpleValue(eff_idx), true);
return;
}
case 69147: // Coldflame
{
if (!unitTarget)
return;
unitTarget->CastSpell(unitTarget, m_spellInfo->CalculateSimpleValue(eff_idx), true);
return;
}
case 69377: // Fortitude
{
if (!unitTarget)
@ -7655,6 +7671,17 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
m_caster->CastSpell(unitTarget, 72036, true);
return;
}
case 72705: // Coldflame (summon around the caster)
{
if (!unitTarget)
return;
// Cast summon spells 72701, 72702, 72703, 72704
for (uint32 triggeredSpell = m_spellInfo->CalculateSimpleValue(eff_idx); triggeredSpell < m_spellInfo->Id; ++triggeredSpell)
unitTarget->CastSpell(unitTarget, triggeredSpell, true);
return;
}
}
break;
}