[10887] Add dummy aura effect of spell 42515

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-12-18 09:16:01 +01:00
parent 38118d17d7
commit f13fb6e52c
2 changed files with 18 additions and 1 deletions

View file

@ -2015,6 +2015,14 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
if (roll_chance_i(20)) // backfire stun
target->CastSpell(target, 51581, true, NULL, this);
return;
case 42515: // Jarl Beam
{
// aura animate dead (fainted) state for the duration, but we need to animate the death itself (correct way below?)
if (Unit* pCaster = GetCaster())
pCaster->SetFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FEIGN_DEATH);
return;
}
case 43873: // Headless Horseman Laugh
target->PlayDistanceSound(11965);
return;
@ -2253,6 +2261,15 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
target->CastSpell(target, 36731, true, NULL, this);
return;
}
case 42515: // Jarl Beam
{
if (Unit* pCaster = GetCaster())
pCaster->RemoveFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FEIGN_DEATH);
// Beam to Zelfrax
target->CastSpell(target, 42517, true);
return;
}
case 43874: // Scourge Mur'gul Camp: Force Shield Arcane Purple x3
target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
return;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10886"
#define REVISION_NR "10887"
#endif // __REVISION_NR_H__