[9080] Add custom/preset unMaxTargets for a few spells where info is not present

Thanks to kamillys and KAPATEJIb for original code and research!

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2009-12-29 01:59:51 +01:00
parent 46b6723af1
commit 7bcf8f44aa
2 changed files with 23 additions and 3 deletions

View file

@ -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;
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9079"
#define REVISION_NR "9080"
#endif // __REVISION_NR_H__