mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +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
|
|
@ -2043,6 +2043,10 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
// Reindeer Transformation
|
||||
target->CastSpell(target, 25860, true, NULL, this);
|
||||
return;
|
||||
case 62109: // Tails Up: Aura
|
||||
target->setFaction(1990); // Ambient (hostile)
|
||||
target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
|
||||
return;
|
||||
case 63624: // Learn a Second Talent Specialization
|
||||
// Teach Learn Talent Specialization Switches, required for client triggered casts, allow after 30 sec delay
|
||||
if (target->GetTypeId() == TYPEID_PLAYER)
|
||||
|
|
|
|||
|
|
@ -2149,6 +2149,11 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
// Sleeping Sleep
|
||||
unitTarget->CastSpell(unitTarget, 62248, true);
|
||||
|
||||
// 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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11289"
|
||||
#define REVISION_NR "11290"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue