mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +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;
|
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:
|
case SPELLFAMILY_PALADIN:
|
||||||
if (m_spellInfo->Id == 20424) // Seal of Command (2 more target for single targeted spell)
|
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
|
EffectChainTarget = 0; // no chain targets
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SPELLFAMILY_DRUID:
|
|
||||||
{
|
|
||||||
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)// Starfall
|
|
||||||
unMaxTargets = 2;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1154,6 +1154,14 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
||||||
m_caster->CastCustomSpell(unitTarget, 37675, &basepoints0, NULL, NULL, true);
|
m_caster->CastCustomSpell(unitTarget, 37675, &basepoints0, NULL, NULL, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case 38194: // Blink
|
||||||
|
{
|
||||||
|
// Blink
|
||||||
|
if (unitTarget)
|
||||||
|
m_caster->CastSpell(unitTarget, 38203, true);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
case 40802: // Mingo's Fortune Generator (Mingo's Fortune Giblets)
|
case 40802: // Mingo's Fortune Generator (Mingo's Fortune Giblets)
|
||||||
{
|
{
|
||||||
// selecting one from Bloodstained Fortune item
|
// selecting one from Bloodstained Fortune item
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10966"
|
#define REVISION_NR "10967"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue