[8248] Fixed talent 12328

* This one spell belongs to SPELLFAMILY_WARRIOR not GENERIC
  next to IDs are for NPC possible.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
ApoC 2009-07-25 16:18:14 +02:00
parent 983264737e
commit 79d49504e0
2 changed files with 18 additions and 4 deletions

View file

@ -4517,13 +4517,12 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
triggered_spell_id = 25997; triggered_spell_id = 25997;
break; break;
} }
// Sweeping Strikes // Sweeping Strikes (NPC spells may be)
case 12328:
case 18765: case 18765:
case 35429: case 35429:
{ {
// prevent chain of triggered spell from same triggered spell // prevent chain of triggered spell from same triggered spell
if(procSpell && procSpell->Id==26654) if(procSpell && procSpell->Id == 26654)
return false; return false;
target = SelectNearbyTarget(); target = SelectNearbyTarget();
@ -5049,6 +5048,21 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
basepoints0 = GetShieldBlockValue() * triggerAmount / 100; basepoints0 = GetShieldBlockValue() * triggerAmount / 100;
break; break;
} }
// Sweeping Strikes
if (dummySpell->Id == 12328)
{
// prevent chain of triggered spell from same triggered spell
if(procSpell && procSpell->Id == 26654)
return false;
target = SelectNearbyTarget();
if(!target)
return false;
triggered_spell_id = 26654;
break;
}
break; break;
} }
case SPELLFAMILY_WARLOCK: case SPELLFAMILY_WARLOCK:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8247" #define REVISION_NR "8248"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__