mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[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:
parent
f8680c119d
commit
7ab08fd6a4
3 changed files with 14 additions and 1 deletions
|
|
@ -1483,6 +1483,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
||||||
{
|
{
|
||||||
switch(m_spellInfo->Id)
|
switch(m_spellInfo->Id)
|
||||||
{
|
{
|
||||||
|
case 23138: // Gate of Shazzrah
|
||||||
case 31347: // Doom TODO: exclude top threat target from target selection
|
case 31347: // Doom TODO: exclude top threat target from target selection
|
||||||
case 33711: // Murmur's Touch
|
case 33711: // Murmur's Touch
|
||||||
case 38794: // Murmur's Touch (h)
|
case 38794: // Murmur's Touch (h)
|
||||||
|
|
|
||||||
|
|
@ -1027,6 +1027,18 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
||||||
m_caster->CastSpell(m_caster, 13166, true, m_CastItem);
|
m_caster->CastSpell(m_caster, 13166, true, m_CastItem);
|
||||||
return;
|
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
|
case 23448: // Transporter Arrival - Ultrasafe Transporter: Gadgetzan - backfires
|
||||||
{
|
{
|
||||||
int32 r = irand(0, 119);
|
int32 r = irand(0, 119);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10991"
|
#define REVISION_NR "10992"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue