From 91b56d294025d6b9048145d645a262d4e3c857e9 Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Sun, 3 Apr 2011 14:15:29 +0200 Subject: [PATCH] [11307] Add dummy aura effect of spell 6606 Signed-off-by: NoFantasy --- src/game/SpellAuras.cpp | 15 +++++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index f6b488831..4ef5f2a21 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -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; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index f0dac9905..123d0d642 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11306" + #define REVISION_NR "11307" #endif // __REVISION_NR_H__