[10992] Add CastSpell part of dummy effect for spell 23138

Also limit max targets.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-01-09 19:41:07 +01:00
parent f8680c119d
commit 7ab08fd6a4
3 changed files with 14 additions and 1 deletions

View file

@ -1027,6 +1027,18 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
m_caster->CastSpell(m_caster, 13166, true, m_CastItem);
return;
}
case 23138: // Gate of Shazzrah
{
if (!unitTarget)
return;
// Effect probably include a threat change, but it is unclear if fully
// reset or just forced upon target for teleport (SMSG_HIGHEST_THREAT_UPDATE)
// Gate of Shazzrah
m_caster->CastSpell(unitTarget, 23139, true);
return;
}
case 23448: // Transporter Arrival - Ultrasafe Transporter: Gadgetzan - backfires
{
int32 r = irand(0, 119);