Jump to content

[11179] [patch][spell=50918,50894]


Guest virusav

Recommended Posts

These spells are needed for a quest http://www.wowhead.com/quest=12527.

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 6a3b3db..fa1ee38 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1411,6 +1411,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
                    return;
                }
                case 46167:                                 // Planning for the Future: Create Snowfall Glade Pup Cover
+                case 50918:                                 // Gluttonous Lurkers: Create Basilisk Crystals Cover
                case 50926:                                 // Gluttonous Lurkers: Create Zul'Drak Rat Cover
                case 51026:                                 // Create Drakkari Medallion Cover
                case 51592:                                 // Pickup Primordial Hatchling
@@ -1426,6 +1427,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
                    switch(m_spellInfo->Id)
                    {
                        case 46167: spellId = 46773; break;
+                        case 50918: spellId = 50919; break;
                        case 50926: spellId = 50927; break;
                        case 51026: spellId = 50737; break;
                        case 51592: spellId = 51593; break;
@@ -6478,6 +6480,26 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
                    ((Player*)caster)->RemoveSpellCategoryCooldown(82, true);
                    return;
                }
+                case 50894:                                 // Zul'Drak Rat
+                {
+                    if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
+                        return;
+
+                    if (Aura* pAura = unitTarget->GetAura(50894, EFFECT_INDEX_0))
+                        if (pAura->GetStackAmount() >= m_spellInfo->StackAmount - 1)
+                            // Gluttonous Lurkers: Summon Gorged Lurking Basilisk
+                            if (const SpellEntry *pSpell = sSpellStore.LookupEntry(50928))
+                            {
+                                unitTarget->CastSpell(m_caster, 50928, true);
+
+                                Creature* creatureTarget = (Creature*)unitTarget;
+
+                                if (const SpellCastTimesEntry *pCastTime = sSpellCastTimesStore.LookupEntry(pSpell->CastingTimeIndex))
+                                    creatureTarget->ForcedDespawn(pCastTime->CastTime + 1);
+                            }
+
+                    return;
+                }
                case 51770:                                 // Emblazon Runeblade
                {
                    Unit* caster = GetAffectiveCaster(); 

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • 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