[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())
{
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
target->ApplySpellImmune(GetId(), IMMUNITY_MECHANIC, GetMiscValue(), apply);
return;