Jump to content

[11694] Implement spell Summon Blizzard (28560) (Sapphiron)


Schmoozerd

Recommended Posts

Description of the feature?

Implement spell 28560

For which repository revision was the patch created?

11662

Is there a thread in the bug report section or at lighthouse?

no

Who has been writing this patch?

me

From 33d1ae232db1678e000577fd8abf89f958a45f38 Mon Sep 17 00:00:00 2001
From: Schmoozerd <[email protected]>
Date: Sun, 26 Jun 2011 12:43:00 +0200
Subject: [PATCH 2/6] Implement spell 28560

---
src/game/Spell.cpp        |    1 +
src/game/SpellEffects.cpp |    8 ++++++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 7e821ed..c57305c 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1555,6 +1555,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
                case 802:                                   // Mutate Bug
                case 804:                                   // Explode Bug
                case 23138:                                 // Gate of Shazzrah
+                case 28560:                                 // Summon Blizzard
                case 31347:                                 // Doom TODO: exclude top threat target from target selection
                case 33711:                                 // Murmur's Touch
                case 38794:                                 // Murmur's Touch (h)
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index c7a56f1..d3edaf8 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -6456,6 +6456,14 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)

                    return;
                }
+                case 28560:                                 // Summon Blizzard
+                {
+                    if (!unitTarget)
+                        return;
+
+                    m_caster->SummonCreature(16474, unitTarget->GetPositionX(), unitTarget->GetPositionY(), unitTarget->GetPositionZ(), 0.0f, TEMPSUMMON_TIMED_DESPAWN, 30000);
+                    return;
+                }
                case 29830:                                 // Mirren's Drinking Hat
                {
                    uint32 item = 0;
-- 
1.7.3.1.msysgit.0


Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use