mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10845] Add dummy effect of spell 49634 and dummy aura of spell 56511
note* spell will need data in spell_script_target to work properly. note* the effect of 56511 does not work, see comment in code for details (code added in any case, to not forget the problem) Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
00db6dbf28
commit
4aa0ab7c40
4 changed files with 47 additions and 1 deletions
|
|
@ -1202,6 +1202,12 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
unitTarget->CastSpell(unitTarget, 43059, true);
|
||||
return;
|
||||
}
|
||||
case 43069: // Towers of Certain Doom: Skorn Cannonfire
|
||||
{
|
||||
// Towers of Certain Doom: Tower Caster Instakill
|
||||
m_caster->CastSpell(m_caster, 43072, true);
|
||||
return;
|
||||
}
|
||||
// Demon Broiled Surprise
|
||||
/* FIX ME: Required for correct work implementing implicit target 7 (in pair (22,7))
|
||||
case 43723:
|
||||
|
|
@ -1435,6 +1441,37 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
}
|
||||
return;
|
||||
}
|
||||
case 49634: // Sergeant's Flare
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
|
||||
return;
|
||||
|
||||
// Towers of Certain Doom: Tower Bunny Smoke Flare Effect
|
||||
// TODO: MaNGOS::DynamicObjectUpdater::VisitHelper prevent aura to be applied to dummy creature (see HandleAuraDummy for effect of aura)
|
||||
m_caster->CastSpell(unitTarget, 56511, true);
|
||||
|
||||
static uint32 const spellCredit[4] =
|
||||
{
|
||||
43077, // E Kill Credit
|
||||
43067, // NW Kill Credit
|
||||
43087, // SE Kill Credit
|
||||
43086, // SW Kill Credit
|
||||
};
|
||||
|
||||
// for sizeof(spellCredit)
|
||||
for (int i = 0; i < 4; ++i)
|
||||
{
|
||||
const SpellEntry *pSpell = sSpellStore.LookupEntry(spellCredit[i]);
|
||||
|
||||
if (pSpell->EffectMiscValue[EFFECT_INDEX_0] == unitTarget->GetEntry())
|
||||
{
|
||||
m_caster->CastSpell(m_caster, spellCredit[i], true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
case 50133: // Scourging Crystal Controller
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue