mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11031] Add dummy effect of spell 54577 and script effect of 54581
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
e9bfc154d9
commit
3bb16cacdb
2 changed files with 42 additions and 1 deletions
|
|
@ -1887,6 +1887,24 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
m_caster->CastSpell(m_caster, spellShrink, true);
|
||||
return;
|
||||
}
|
||||
case 54577: // Throw U.D.E.D.
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
|
||||
return;
|
||||
|
||||
// Sometimes issues with explosion animation. Unclear why
|
||||
// but possibly caused by the order of spells.
|
||||
|
||||
// Permanent Feign Death
|
||||
unitTarget->CastSpell(unitTarget, 29266, true);
|
||||
|
||||
// need to despawn later
|
||||
((Creature*)unitTarget)->ForcedDespawn(2000);
|
||||
|
||||
// Mammoth Explosion Spell Spawner
|
||||
unitTarget->CastSpell(unitTarget, 54581, true, m_CastItem);
|
||||
return;
|
||||
}
|
||||
case 55004: // Nitro Boosts
|
||||
{
|
||||
if (!m_CastItem)
|
||||
|
|
@ -6354,6 +6372,29 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
unitTarget->RemoveAurasDueToSpell(51967);
|
||||
return;
|
||||
}
|
||||
case 54581: // Mammoth Explosion Spell Spawner
|
||||
{
|
||||
if (m_caster->GetTypeId() != TYPEID_UNIT)
|
||||
return;
|
||||
|
||||
// Summons misc npc's. They are expected to summon GO from 54625
|
||||
// but there is no way to get the summoned, to trigger a spell
|
||||
// cast (workaround can be done with ai script).
|
||||
|
||||
// Quest - Mammoth Explosion Summon Object
|
||||
for(int i = 0; i < 2; ++i)
|
||||
m_caster->CastSpell(m_caster, 54623, true);
|
||||
|
||||
for(int i = 0; i < 2; ++i)
|
||||
m_caster->CastSpell(m_caster, 54627, true);
|
||||
|
||||
for(int i = 0; i < 2; ++i)
|
||||
m_caster->CastSpell(m_caster, 54628, true);
|
||||
|
||||
// Summon Main Mammoth Meat
|
||||
m_caster->CastSpell(m_caster, 57444, true);
|
||||
return;
|
||||
}
|
||||
case 54729: // Winged Steed of the Ebon Blade
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue