Jump to content

[9251][fix]Summon Water Elemental


Auntie Mangos

Recommended Posts

[fix]Summon Water Elemental

What bug does the patch fix? What features does the patch add?

fixes Summon Water Elemental

For which repository revision was the patch created?

9145

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

http://getmangos.eu/community/showthread.php?11977-[bug-9145][spell]Summon-Water-Elemental

Who has been writing this patch? Please include either forum user names or email addresses.

Wowka321

fix:

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp

index 09e261c..3a56841 100644

--- a/src/game/SpellEffects.cpp

+++ b/src/game/SpellEffects.cpp

@@ -1494,6 +1494,14 @@ void Spell::EffectDummy(uint32 i)

}

return;

}

+ case 31687: // Summon Water Elemental

+ {

+ if (m_caster->HasAura(70937))

+ m_caster->CastSpell(m_caster, 70908, true);

+ else

+ m_caster->CastSpell(m_caster, 70907, true);

+ return;

+ }

case 32826: // Polymorph Cast Visual

{

if (unitTarget && unitTarget->GetTypeId() == TYPEID_UNIT)

Link to comment
Share on other sites

  • 40 years later...

I confirm, it's work.

My implementation:

@@ -1452,6 +1452,21 @@ void Spell::EffectDummy(uint32 i)
                    }
                    return;
                }
+                // Water Elemental
+                case 31687:
+                {
+                    // Spell ID to cast
+                    uint32 triggeredSpellId = 70907;
+
+                    // Glyphs
+                    if (m_caster->HasAura(70937))
+                        triggeredSpellId = 70908;
+
+                    // Summon
+                    m_caster->CastSpell(m_caster, triggeredSpellId, true);
+
+                    return;
+                }
                case 32826:                                 // Polymorph Cast Visual
                {
                    if (unitTarget && unitTarget->GetTypeId() == TYPEID_UNIT)

Link to comment
Share on other sites

Rev. 9261.

YTDB

SD2

When I use glyph, the summon just last like 10 or 15 seconds and it cant cast any of the spells it has to cast (With Glyph just Waterbolt)

Water Elemental casts only Waterbolt and have instant Freeze, which is working like Frost nova. This spell Freeze is not working as it should from long time ago. Sometimes it freezes the target, but the Water Elemental don't cast Waterbolt. If the Water Elemental starts to cast Waterbolt you will not be able to use Freeze. This is old bug.

Link to comment
Share on other sites

  • 4 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • 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