Skip to content

Commit

Permalink
Core/Spell: * Removed proc overrides for some AoE spells that really …
Browse files Browse the repository at this point in the history
…shouldn't be there on WotLK. Fixes all Improved Blizzard procs and breaking stealth by Blizzard, Volley, Hurricane, RoF.

* Closes issue #3100. Closes issue #3711. Makes dr.tenma smile.

--HG--
branch : trunk
  • Loading branch information
Xanadu committed Sep 28, 2010
1 parent 11b682e commit eb1b037
Showing 1 changed file with 4 additions and 41 deletions.
45 changes: 4 additions & 41 deletions src/server/game/Spells/Spell.cpp
Expand Up @@ -892,48 +892,11 @@ void Spell::prepareDataForTriggerSystem(AuraEffect const * /*triggeredByAura*/)
to prevent chain proc of these spells
*/

switch (m_spellInfo->SpellFamilyName)
// Hellfire Effect - trigger as DOT
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_WARLOCK && m_spellInfo->SpellFamilyFlags[0] & 0x00000040)
{
case SPELLFAMILY_MAGE:
{
// Blizzard - trigger as DOT
if (m_spellInfo->SpellFamilyFlags[0] & 0x80)
{
m_procAttacker = PROC_FLAG_ON_DO_PERIODIC;
m_procVictim = PROC_FLAG_ON_TAKE_PERIODIC;
}
break;
}
case SPELLFAMILY_WARLOCK:
{
// For Hellfire Effect / Rain of Fire - trigger as DOT
if (m_spellInfo->SpellFamilyFlags[0] & 0x60)
{
m_procAttacker = PROC_FLAG_ON_DO_PERIODIC;
m_procVictim = PROC_FLAG_ON_TAKE_PERIODIC;
}
break;
}
case SPELLFAMILY_HUNTER:
{
// Volley - trigger as DOT
if (m_spellInfo->SpellFamilyFlags[0] & 0x0002000)
{
m_procAttacker = PROC_FLAG_ON_DO_PERIODIC;
m_procVictim = PROC_FLAG_ON_TAKE_PERIODIC;
}
break;
}
case SPELLFAMILY_DRUID:
{
// Hurricane - trigger as DOT
if (m_spellInfo->SpellFamilyFlags[0] & 0x0400000)
{
m_procAttacker = PROC_FLAG_ON_DO_PERIODIC;
m_procVictim = PROC_FLAG_ON_TAKE_PERIODIC;
}
break;
}
m_procAttacker = PROC_FLAG_ON_DO_PERIODIC;
m_procVictim = PROC_FLAG_ON_TAKE_PERIODIC;
}

// Ranged autorepeat attack is set as triggered spell - ignore it
Expand Down

0 comments on commit eb1b037

Please sign in to comment.