Jump to content

Recommended Posts

Posted

  • * What bug does the patch fix? What features does the patch add?
    It removes the Blood Elf racial Mana Tap no longer used also from playercreateinfo_spell table, I forgot when posted this patch
    * For which repository revision was the patch created?
    7501 (all)
    * Who has been writing this patch?
    Me but this is not such a patch

-- MaNGOS DB
DELETE FROM `playercreateinfo_spell` WHERE `Spell` = '28734';
-- interface cleanup by crackm
DELETE FROM `playercreateinfo_action` WHERE `action` = '28734';
UPDATE `playercreateinfo_action` SET `button` = '3' WHERE `race` = '10' AND `class` IN ('8', '9', '5', '2', '3') AND `button` = '4';
UPDATE `playercreateinfo_action` SET `button` = '4' WHERE `race` = '10' AND `class` = '4' AND `button` = '5';
-- Characters DB
DELETE FROM `character_spell` WHERE `spell` = '28734';
DELETE FROM `character_aura` WHERE `spell` = '28734';
DELETE FROM  `character_action` WHERE `action` = '28734' AND `type` = '0';

Mana Tap needs to be removed from code too. Current code still checks for Mana Tap's. Something like

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index bc1316f..2c5b14a 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -3730,26 +3730,6 @@ void Aura::HandleAuraModSilence(bool apply, bool Real)
                }
            }
        }
-
-        switch (GetId())
-        {
-            // Arcane Torrent (Energy)
-            case 25046:
-            {
-                Unit * caster = GetCaster();
-                if (!caster)
-                    return;
-
-                // Search Mana Tap auras on caster
-                Aura * dummy = caster->GetDummyAura(28734);
-                if (dummy)
-                {
-                    int32 bp = dummy->GetStackAmount() * 10;
-                    caster->CastCustomSpell(caster, 25048, &bp, NULL, NULL, true);
-                    caster->RemoveAurasDueToSpell(28734);
-                }
-            }
-        }
    }
    else
    {

  • 39 years later...
Posted

Mana Tap needs to be removed from code too. Current code still checks for Mana Tap's. Something like

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index bc1316f..2c5b14a 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -3730,26 +3730,6 @@ void Aura::HandleAuraModSilence(bool apply, bool Real)
                }
            }
        }
-
-        switch (GetId())
-        {
-            // Arcane Torrent (Energy)
-            case 25046:
-            {
-                Unit * caster = GetCaster();
-                if (!caster)
-                    return;
-
-                // Search Mana Tap auras on caster
-                Aura * dummy = caster->GetDummyAura(28734);
-                if (dummy)
-                {
-                    int32 bp = dummy->GetStackAmount() * 10;
-                    caster->CastCustomSpell(caster, 25048, &bp, NULL, NULL, true);
-                    caster->RemoveAurasDueToSpell(28734);
-                }
-            }
-        }
    }
    else
    {

  • 4 weeks later...
  • 3 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