Jump to content

Gnomish Universal Remote


Recommended Posts

Posted

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 8014220..aa8e3fe 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -713,6 +713,25 @@ void Spell::EffectDummy(uint32 i)
                    m_caster->CastSpell(unitTarget,spell_id,true,NULL);
                    return;
                }
+                case 8344:                                 // Gnomish Universal Remote Control
+                {
+                    if(!unitTarget)
+                        return;
+
+                    uint32 spell_id = 0;
+
+                    uint32 rnd = urand(0, 99);
+
+                    if(rnd < 7)                            // Backfire. Taunts the target.
+                        spell_id = 8347;
+                    else if(rnd < 12)                      // Another possible backfire. Roots the target.
+                        spell_id = 8346;
+                    else                                   // Gain control
+                        spell_id = 8345;
+
+                    m_caster->CastSpell(unitTarget,spell_id,true,NULL);
+                    return;
+                }
                case 13567:                                 // Dummy Trigger
                {
                    // can be used for different aura triggering, so select by aura

Everything is working, but I can't figure out how to interrupt channeling effect (and remove buff from player) after I dismiss charmed npc.

×
×
  • 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