From afb090f57cf6a656330290019e36aa82c4c3e456 Mon Sep 17 00:00:00 2001 From: cyberium Date: Sat, 18 Aug 2012 03:41:40 +0200 Subject: [PATCH] [12101] Implement spell 36677 Signed-off-by: Schmoozerd --- src/game/SpellEffects.cpp | 14 ++++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 31cdc3cda..13bf2648d 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1332,6 +1332,20 @@ void Spell::EffectDummy(SpellEffectEntry const* effect) m_caster->CastSpell(m_caster, spell_id, true, NULL); return; } + case 36677: // Chaos Breath + { + if (!unitTarget) + return; + + uint32 possibleSpells[] = {36693, 36694, 36695, 36696, 36697, 36698, 36699, 36700} ; + std::vector spellPool(possibleSpells, possibleSpells + countof(possibleSpells)); + std::random_shuffle(spellPool.begin(), spellPool.end()); + + for (uint8 i = 0; i < (m_caster->GetMap()->IsRegularDifficulty() ? 2 : 4); ++i) + m_caster->CastSpell(m_caster, spellPool[i], true); + + return; + } case 33923: // Sonic Boom case 38796: // Sonic Boom (heroic) { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index ea05b6882..929068c67 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 "0132" + #define REVISION_NR "12101" #endif // __REVISION_NR_H__