mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
Implement DK spell 50842.
Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
parent
302afbc40f
commit
6c12b38711
1 changed files with 31 additions and 0 deletions
|
|
@ -5548,6 +5548,37 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
|||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_DEATHKNIGHT:
|
||||
{
|
||||
switch(m_spellInfo->Id)
|
||||
{
|
||||
// Pestilence
|
||||
case 50842:
|
||||
{
|
||||
if(!unitTarget)
|
||||
return;
|
||||
|
||||
Unit* mainTarget = m_targets.getUnitTarget();
|
||||
if(!mainTarget)
|
||||
return;
|
||||
|
||||
// do only refresh diseases on main target if caster has Glyph of Disease
|
||||
if(mainTarget == unitTarget && !m_caster->HasAura(63334))
|
||||
return;
|
||||
|
||||
// Blood Plague
|
||||
if(mainTarget->HasAura(55078))
|
||||
m_caster->CastSpell(unitTarget, 55078, true);
|
||||
|
||||
// Frost Fever
|
||||
if(mainTarget->HasAura(55095))
|
||||
m_caster->CastSpell(unitTarget, 55095, true);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// normal DB scripted effect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue