Created
February 17, 2012 11:00
-
-
Save Jildor/1852680 to your computer and use it in GitHub Desktop.
Relentless Strikes vs Envenom new rev
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
bool Spell::CanExecuteTriggersOnHit(uint8 effMask, SpellInfo const* spellInfo) const | |
{ | |
bool only_on_dummy = (spellInfo && (spellInfo->AttributesEx4 & SPELL_ATTR4_PROC_ONLY_ON_DUMMY)); | |
// If triggered spell has SPELL_ATTR4_PROC_ONLY_ON_DUMMY then it can only proc on a casted spell with SPELL_EFFECT_DUMMY | |
// If triggered spell doesn't have SPELL_ATTR4_PROC_ONLY_ON_DUMMY then it can NOT proc on SPELL_EFFECT_DUMMY (needs confirmation) | |
for (uint8 i = 0;i < MAX_SPELL_EFFECTS; ++i) | |
{ | |
- if ((effMask & (1 << i)) && (only_on_dummy == (m_spellInfo->Effects[i].Effect == SPELL_EFFECT_DUMMY))) | |
+ // if ((effMask & (1 << i)) && (only_on_dummy == (m_spellInfo->Effects[i].Effect == SPELL_EFFECT_DUMMY))) | |
+ if ((effMask & (1 << i)) && ((only_on_dummy == (m_spellInfo->Effects[i].Effect == SPELL_EFFECT_DUMMY)) && | |
+ !(m_spellInfo->SpellFamilyName == SPELLFAMILY_ROGUE && | |
+ m_spellInfo->SpellFamilyFlags[1] & 0x8 && i != 0) )) | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment