mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[9420] Implement aura dummy effect for spell 35357
Also adjusting dummy spell 45990 slightly, despawn after some time instead of die instantly. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
f9a5d37bf6
commit
e8c2d62c19
3 changed files with 16 additions and 4 deletions
|
|
@ -1222,9 +1222,11 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
|
||||
return;
|
||||
|
||||
m_caster->CastSpell(m_caster, 45991, true);
|
||||
unitTarget->setDeathState(JUST_DIED);
|
||||
unitTarget->SetHealth(0);
|
||||
if (const SpellEntry *pSpell = sSpellStore.LookupEntry(45991))
|
||||
{
|
||||
unitTarget->CastSpell(unitTarget, pSpell, true);
|
||||
((Creature*)unitTarget)->ForcedDespawn(GetSpellDuration(pSpell) + 1);
|
||||
}
|
||||
return;
|
||||
}
|
||||
case 50243: // Teach Language
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue