Jump to content

[11142][patch] Curse of the Eye dummy spell


Guest dpedroia15

Recommended Posts

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

This patch implements the dummy effect for the spell "Curse of the Eye".

* For which repository revision was the patch created?

11136

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

No

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

Me.

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index d12a664..32bf82d 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -769,6 +769,14 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
        {
            switch(m_spellInfo->Id)
            {
+                case 3360:                                  // Curse of the Eye
+                    if(!unitTarget)
+                        return;
+
+                    uint32 spell_id = (unitTarget->getGender() == GENDER_MALE) ? 10651: 10653;
+
+                    m_caster->CastSpell(unitTarget, spell_id, true);
+                    return;
                case 7671:                                  // Transformation (human<->worgen)
                {
                    if (!unitTarget)

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