Jump to content

[9811] [FIX] Shadowflame Stack


Recommended Posts

Posted

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

This patch will correct a problem stack Warlock Shadowflame with other Affliction dots.

For which repository revision was the patch created?

[9812]

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

I didn't find thread with this problem.

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

Me (Most_Mangos)

code diff:

diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index d1dd4e8..8d91d5d 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -1534,6 +1534,26 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons
                    (spellInfo_2->SpellIconID == 313 || spellInfo_2->SpellIconID == 2039) && (spellInfo_1->SpellIconID == 544  || spellInfo_1->SpellIconID == 91) )
                    return false;

+                // Shadowflame and Curse of Agony
+                if( spellInfo_1->SpellIconID == 544 && spellInfo_2->SpellIconID == 3317 ||
+                    spellInfo_2->SpellIconID == 544 && spellInfo_1->SpellIconID == 3317 )
+                    return false;
+
+               // Shadowflame and Corruption 
+                if( spellInfo_1->SpellIconID == 313 && spellInfo_2->SpellIconID == 3317 ||
+                    spellInfo_2->SpellIconID == 313 && spellInfo_1->SpellIconID == 3317 )
+                    return false;
+
+               // Shadowflame and Unstable Affliction
+                if( spellInfo_1->SpellIconID == 2039 && spellInfo_2->SpellIconID == 3317 ||
+                    spellInfo_2->SpellIconID == 2039 && spellInfo_1->SpellIconID == 3317 )
+                    return false;
+
+               // Shadowflame and Curse of Doom
+                if( spellInfo_1->SpellIconID == 91 && spellInfo_2->SpellIconID == 3317 ||
+                    spellInfo_2->SpellIconID == 91 && spellInfo_1->SpellIconID == 3317 )
+                    return false;
+
                // Metamorphosis, diff effects
                if (spellInfo_1->SpellIconID == 3314 && spellInfo_2->SpellIconID == 3314)
                    return false;

  • 1 year later...
Posted

Imho this whole stacking stuff should be done from the other side, all auras should stack (except the same caster's aura) and some exceptions should be checked what shouldnt (I know only Judgements and the same area auras).

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