[11307] Add dummy aura effect of spell 6606

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-04-03 14:15:29 +02:00
parent 1a34a22cb9
commit 91b56d2940
2 changed files with 16 additions and 1 deletions

View file

@ -2489,6 +2489,21 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
{ {
switch(GetId()) switch(GetId())
{ {
case 6606: // Self Visual - Sleep Until Cancelled (DND)
{
if (apply)
{
target->SetStandState(UNIT_STAND_STATE_SLEEP);
target->addUnitState(UNIT_STAT_ROOT);
}
else
{
target->clearUnitState(UNIT_STAT_ROOT);
target->SetStandState(UNIT_STAND_STATE_STAND);
}
return;
}
case 11196: // Recently Bandaged case 11196: // Recently Bandaged
target->ApplySpellImmune(GetId(), IMMUNITY_MECHANIC, GetMiscValue(), apply); target->ApplySpellImmune(GetId(), IMMUNITY_MECHANIC, GetMiscValue(), apply);
return; return;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11306" #define REVISION_NR "11307"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__