mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[11992] Implement spells 69140, 69147 and 72705
Original author Michalpolko and others Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
3c3db7311c
commit
5dbef19097
3 changed files with 29 additions and 1 deletions
|
|
@ -1627,6 +1627,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
||||||
case 68950: // Fear (FoS)
|
case 68950: // Fear (FoS)
|
||||||
case 68912: // Wailing Souls (FoS)
|
case 68912: // Wailing Souls (FoS)
|
||||||
case 69048: // Mirrored Soul (FoS)
|
case 69048: // Mirrored Soul (FoS)
|
||||||
|
case 69140: // Coldflame (ICC, Marrowgar)
|
||||||
case 69674: // Mutated Infection (ICC, Rotface)
|
case 69674: // Mutated Infection (ICC, Rotface)
|
||||||
case 70882: // Slime Spray Summon Trigger (ICC, Rotface)
|
case 70882: // Slime Spray Summon Trigger (ICC, Rotface)
|
||||||
case 70920: // Unbound Plague Search Effect (ICC, Putricide)
|
case 70920: // Unbound Plague Search Effect (ICC, Putricide)
|
||||||
|
|
|
||||||
|
|
@ -7624,6 +7624,22 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
unitTarget->CastSpell(m_caster, 69023, true);
|
unitTarget->CastSpell(m_caster, 69023, true);
|
||||||
return;
|
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
|
case 69377: // Fortitude
|
||||||
{
|
{
|
||||||
if (!unitTarget)
|
if (!unitTarget)
|
||||||
|
|
@ -7655,6 +7671,17 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
m_caster->CastSpell(unitTarget, 72036, true);
|
m_caster->CastSpell(unitTarget, 72036, true);
|
||||||
return;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11991"
|
#define REVISION_NR "11992"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue