Skip to content

Instantly share code, notes, and snippets.

@tobmaps
Created August 28, 2011 15:51
Show Gist options
  • Save tobmaps/1176818 to your computer and use it in GitHub Desktop.
Save tobmaps/1176818 to your computer and use it in GitHub Desktop.
Relentless Strikes vs Envenom
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;
@cesg
Copy link

cesg commented Aug 28, 2011

works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment