[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:
Daggy 2011-01-05 10:22:44 +01:00 committed by NoFantasy
parent 43707056f3
commit 9f8cfb77d4
3 changed files with 21 additions and 7 deletions

View file

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

View file

@ -1154,6 +1154,14 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
m_caster->CastCustomSpell(unitTarget, 37675, &basepoints0, NULL, NULL, true);
return;
}
case 38194: // Blink
{
// Blink
if (unitTarget)
m_caster->CastSpell(unitTarget, 38203, true);
return;
}
case 40802: // Mingo's Fortune Generator (Mingo's Fortune Giblets)
{
// selecting one from Bloodstained Fortune item

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10966"
#define REVISION_NR "10967"
#endif // __REVISION_NR_H__