Skip to content

Commit

Permalink
[10302] Add dummy aura effect of spell 31606
Browse files Browse the repository at this point in the history
Note: it is expected that script side update player displayId at end of related taxi path. If not, player will be stuck with the model.

Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Aug 1, 2010
1 parent bc49e01 commit 08ec66a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/game/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1948,6 +1948,16 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
m_modifier.periodictime = 30*IN_MILLISECONDS;
m_periodicTimer = m_modifier.periodictime;
return;
case 31606: // Stormcrow Amulet
{
CreatureInfo const * cInfo = ObjectMgr::GetCreatureTemplate(17970);

// we must assume db or script set display id to native at ending flight (if not, target is stuck with this model)
if (cInfo)
target->SetDisplayId(Creature::ChooseDisplayId(0, cInfo));

return;
}
case 13139: // net-o-matic
// root to self part of (root_target->charge->root_self sequence
if (Unit* caster = GetCaster())
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10301"
#define REVISION_NR "10302"
#endif // __REVISION_NR_H__

0 comments on commit 08ec66a

Please sign in to comment.