Jump to content

[patch] Typo fix in diminishing


Guest KAPATEJIb

Recommended Posts

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

It fixes a typo after 8082 . That typo cause Crippling Poison to be affected by diminishing

For which repository revision was the patch created?

8108

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

Can't find any

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

zuudu

diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 23b2762..e8e57b7 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -2787,7 +2787,7 @@ DiminishingGroup GetDiminishingReturnsGroupForSpell(SpellEntry const* spellproto
    if (mechanic & (1<<MECHANIC_FEAR))      return DIMINISHING_FEAR_BLIND;
    if (mechanic & (1<<MECHANIC_CHARM))     return DIMINISHING_CHARM;
    if (mechanic & (1<<MECHANIC_SILENCE))   return DIMINISHING_SILENCE;
-    if (mechanic & (1<<DIMINISHING_DISARM)) return DIMINISHING_DISARM;
+    if (mechanic & (1<<MECHANIC_DISARM))    return DIMINISHING_DISARM;
    if (mechanic & (1<<MECHANIC_FREEZE))    return DIMINISHING_FREEZE_SLEEP;
    if (mechanic & ((1<<MECHANIC_KNOCKOUT) | (1<<MECHANIC_SAPPED)))    return DIMINISHING_POLYMORPH_GOUGE_SAP;
    if (mechanic & (1<<MECHANIC_BANISH))    return DIMINISHING_BANISH;

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