mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 22:37:04 +00:00
[12034] Implement a bunch of spells
* Target Limitations for: 70450 70837 71445 71471 71837 71861 * DummyEffects for: 71445 71471, 71718, 72040, 71837, 71861, 72261 * ScriptEffect for: 71806
This commit is contained in:
parent
c46fade9f0
commit
0cce85e46e
3 changed files with 59 additions and 3 deletions
|
|
@ -2581,6 +2581,48 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
unitTarget->CastSpell(m_caster, 69956, true);
|
||||
return;
|
||||
}
|
||||
case 71445: // Twilight Bloodbolt
|
||||
case 71471: // Twilight Bloodbolt
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
m_caster->CastSpell(unitTarget, 71818, true);
|
||||
return;
|
||||
}
|
||||
case 71718: // Conjure Flame
|
||||
case 72040: // Conjure Empowered Flame
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
m_caster->CastSpell(unitTarget, m_spellInfo->CalculateSimpleValue(eff_idx), true);
|
||||
return;
|
||||
}
|
||||
case 71837: // Vampiric Bite
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
m_caster->CastSpell(unitTarget, 71726, true);
|
||||
return;
|
||||
}
|
||||
case 71861: // Swarming Shadows
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
m_caster->CastSpell(unitTarget, 71264, true);
|
||||
return;
|
||||
}
|
||||
case 72261: // Delirious Slash
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
m_caster->CastSpell(unitTarget, m_caster->CanReachWithMeleeAttack(unitTarget) ? 71623 : 72264, true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
@ -7830,6 +7872,14 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
m_caster->CastSpell(unitTarget, 72588, true);
|
||||
return;
|
||||
}
|
||||
case 71806: // Glittering Sparks
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
m_caster->CastSpell(unitTarget, m_spellInfo->CalculateSimpleValue(eff_idx), true);
|
||||
return;
|
||||
}
|
||||
case 72034: // Whiteout
|
||||
case 72096: // Whiteout (heroic)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue