Skip to content

Commit

Permalink
[10967] Add dummy effect of spell 38194 and limit it's maxTargets
Browse files Browse the repository at this point in the history
Correct order of spellfamily case.
Note: triggered spell 38203 needs target map fill

Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
Daggy authored and NoFantasy committed Jan 5, 2011
1 parent 42a52c5 commit 725d595
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
18 changes: 12 additions & 6 deletions src/game/Spell.cpp
Expand Up @@ -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)
{
Expand All @@ -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;
}
Expand Down
8 changes: 8 additions & 0 deletions src/game/SpellEffects.cpp
Expand Up @@ -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
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 "10966"
#define REVISION_NR "10967"
#endif // __REVISION_NR_H__

0 comments on commit 725d595

Please sign in to comment.