Jump to content

[7777] Warlock - Nether Protection


Auntie Mangos

Recommended Posts

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

This patch would fix warlock Nether Protection, now it proc from all magic schools (include holy)

http://www.wowhead.com/?spell=30302

For which repository revision was the patch created?

7694

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/viewtopic.php?id=7099

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

Me (Corfen)

core patch:

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 7b38fde..149be10 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6208,8 +6208,8 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
                    switch(GetFirstSchoolInMask(GetSpellSchoolMask(procSpell)))
                    {
                        case SPELL_SCHOOL_NORMAL:
-                        case SPELL_SCHOOL_HOLY:
                            return false;                   // ignore
+                        case SPELL_SCHOOL_HOLY:   trigger_spell_id = 54370; break;
                        case SPELL_SCHOOL_FIRE:   trigger_spell_id = 54371; break;
                        case SPELL_SCHOOL_NATURE: trigger_spell_id = 54375; break;
                        case SPELL_SCHOOL_FROST:  trigger_spell_id = 54372; break;

SQL Spell proc event, SchoolMask fix:

DELETE FROM `spell_proc_event` WHERE entry IN (30299,30301,30302);
INSERT INTO `spell_proc_event` VALUES
(30299, 0x0000007E,  0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000,  0);
INSERT INTO `spell_proc_event` VALUES
(30301, 0x0000007E,  0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000,  0);
INSERT INTO `spell_proc_event` VALUES
(30302, 0x0000007E,  0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000,  0);

patch + sql file

Link to comment
Share on other sites

  • 39 years later...
  • 2 weeks later...
Pardon me for asking, but does this work for arcane spells also, because one guy at my server keeps telling that this fix was only for holy spells...

Line 6282 Unit.cpp : case SPELL_SCHOOL_ARCANE: trigger_spell_id = 54373; break;

Link to comment
Share on other sites

  • 2 months 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