From f13fb6e52cb8de3e4250ef35cc9317ad655c1d62 Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Sat, 18 Dec 2010 09:16:01 +0100 Subject: [PATCH] [10887] Add dummy aura effect of spell 42515 Signed-off-by: NoFantasy --- src/game/SpellAuras.cpp | 17 +++++++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index c755b1fda..a9896e9d8 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -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; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8e63f0ed4..c54fb4deb 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 "10886" + #define REVISION_NR "10887" #endif // __REVISION_NR_H__