mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 01:37:05 +00:00
[10967] Add dummy effect of spell 38194 and limit it's maxTargets
Correct order of spellfamily case. Note: triggered spell 38203 needs target map fill Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
43707056f3
commit
9f8cfb77d4
3 changed files with 21 additions and 7 deletions
|
|
@ -1517,6 +1517,18 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
|||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_MAGE:
|
||||
{
|
||||
if (m_spellInfo->Id == 38194) // Blink
|
||||
unMaxTargets = 1;
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_DRUID:
|
||||
{
|
||||
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)// Starfall
|
||||
unMaxTargets = 2;
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_PALADIN:
|
||||
if (m_spellInfo->Id == 20424) // Seal of Command (2 more target for single targeted spell)
|
||||
{
|
||||
|
|
@ -1529,12 +1541,6 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
|||
EffectChainTarget = 0; // no chain targets
|
||||
}
|
||||
break;
|
||||
case SPELLFAMILY_DRUID:
|
||||
{
|
||||
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)// Starfall
|
||||
unMaxTargets = 2;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue