mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[11290] Add dummy aura effect of spell 62109
Also add a smaller hack to have access to m_caster later (see code comments) Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
40d87bfabf
commit
23af82081b
3 changed files with 11 additions and 2 deletions
|
|
@ -2149,7 +2149,12 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
// Sleeping Sleep
|
||||
unitTarget->CastSpell(unitTarget, 62248, true);
|
||||
|
||||
unitTarget->setFaction(190); // Ambient (neutral)
|
||||
// Although not really correct, it's needed to have access to m_caster later,
|
||||
// to properly process spell 62110 (cast from gossip).
|
||||
// Can possibly be replaced with a similar function that doesn't set any dynamic flags.
|
||||
((Creature*)unitTarget)->SetLootRecipient(m_caster);
|
||||
|
||||
unitTarget->setFaction(190); // Ambient (neutral)
|
||||
unitTarget->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue