mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[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:
parent
46b6723af1
commit
7bcf8f44aa
2 changed files with 23 additions and 3 deletions
|
|
@ -1309,11 +1309,31 @@ void Spell::SetTargetMap(uint32 effIndex,uint32 targetMode,UnitList& TagUnitMap)
|
||||||
// custom target amount cases
|
// custom target amount cases
|
||||||
switch(m_spellInfo->SpellFamilyName)
|
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:
|
case SPELLFAMILY_DRUID:
|
||||||
// Starfall
|
{
|
||||||
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)
|
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)// Starfall
|
||||||
unMaxTargets = 2;
|
unMaxTargets = 2;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9079"
|
#define REVISION_NR "9080"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue