-
-
Save Jildor/1339826 to your computer and use it in GitHub Desktop.
Relentless Strikes vs Envenom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp | |
index 4eee788..e3dd391 100755 | |
--- a/src/server/game/Spells/Spell.cpp | |
+++ b/src/server/game/Spells/Spell.cpp | |
@@ -7089,9 +7089,12 @@ bool Spell::CanExecuteTriggersOnHit(uint8 effMask) const | |
// check which effects can trigger proc | |
// don't allow to proc for dummy-only spell target hits | |
// prevents triggering/procing effects twice from spells like Eviscerate | |
- for (uint8 i = 0;effMask && i < MAX_SPELL_EFFECTS; ++i) | |
+ // also prevents double proc from Envenom | |
+ for (uint8 i = 0; effMask && i < MAX_SPELL_EFFECTS; ++i) | |
{ | |
- if (m_spellInfo->Effects[i].Effect == SPELL_EFFECT_DUMMY) | |
+ if (m_spellInfo->Effects[i].Effect == SPELL_EFFECT_DUMMY || | |
+ (m_spellInfo->SpellFamilyName == SPELLFAMILY_ROGUE && | |
+ m_spellInfo->SpellFamilyFlags[1] & 0x8 && i != 0)) | |
effMask &= ~(1<<i); | |
} | |
return effMask; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment