Jump to content

[fix] Repentance and Righteous Vengeance stacking

Guest MrLama

Recommended Posts

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

Repentance should remove Righteous Vengeance but not other way

For which repository revision was the patch created?


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


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


diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 5a41f3b..5994c3b 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -1948,6 +1948,10 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons
                 if ((spellInfo_1->SpellIconID == 3025 && spellInfo_2->SpellIconID == 2292) ||
                     (spellInfo_1->SpellIconID == 2292 && spellInfo_2->SpellIconID == 3025))
                     return false;
+				 // Repentance removes Righteous Vengeance
+				 if (spellInfo_1->Id == 20066 && spellInfo_2->Id == 61840)
+					 return true;

            // Blessing of Sanctuary (multi-family check, some from 16 spell icon spells)

Link to comment
Share on other sites

  • 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