Skip to content

Commit

Permalink
[9080] Add custom/preset unMaxTargets for a few spells where info is …
Browse files Browse the repository at this point in the history
…not present

Thanks to kamillys and KAPATEJIb for original code and research!

Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Dec 29, 2009
1 parent 5472330 commit aa65a17
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions src/game/Spell.cpp
Expand Up @@ -1309,11 +1309,31 @@ void Spell::SetTargetMap(uint32 effIndex,uint32 targetMode,UnitList& TagUnitMap)
// custom target amount cases
switch(m_spellInfo->SpellFamilyName)
{
case SPELLFAMILY_GENERIC:
{
switch(m_spellInfo->Id)
{
case 28796: // Poison Bolt Volley
case 29213: // Curse of the Plaguebringer
case 31298: // Sleep
unMaxTargets = 3;
break;
case 30843: // Enfeeble
unMaxTargets = 5;
break;
case 54098: // Poison Bolt Volley
case 54835: // Curse of the Plaguebringer
unMaxTargets = 10;
break;
}
break;
}
case SPELLFAMILY_DRUID:
// Starfall
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)
{
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)// Starfall
unMaxTargets = 2;
break;
}
default:
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9079"
#define REVISION_NR "9080"
#endif // __REVISION_NR_H__

0 comments on commit aa65a17

Please sign in to comment.