Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case SPELLFAMILY_DEATHKNIGHT:
- {
- // Pestilence
- if (m_spellInfo->SpellFamilyFlags[1]&0x10000)
- {
- // Get diseases on target of spell
- if (m_targets.GetUnitTarget() && // Glyph of Disease - cast on unit target too to refresh aura
- (m_targets.GetUnitTarget() != unitTarget || m_caster->GetAura(63334)))
- {
- // And spread them on target
- // Blood Plague
- if (m_targets.GetUnitTarget()->GetAura(55078))
- m_caster->CastSpell(unitTarget, 55078, true);
- // Frost Fever
- if (m_targets.GetUnitTarget()->GetAura(55095))
- m_caster->CastSpell(unitTarget, 55095, true);
- if (m_caster->GetAura(51099) || m_caster->GetAura(51160) || m_caster->GetAura(51161))
- {
- // Ebon Plague - Rank 1
- if (m_targets.GetUnitTarget()->GetAura(51726))
- m_caster->CastSpell(unitTarget, 51726, true);
- // Ebon Plague - Rank 2
- if (m_targets.GetUnitTarget()->GetAura(51734))
- m_caster->CastSpell(unitTarget, 51734, true);
- // Ebon Plague - Rank 3
- if (m_targets.GetUnitTarget()->GetAura(51735))
- m_caster->CastSpell(unitTarget, 51735, true);
- }
- }
- }
- break;
- }
Add Comment
Please, Sign In to add comment