Guest User

Untitled

a guest
Jan 21st, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. case SPELLFAMILY_DEATHKNIGHT:
  2. {
  3. // Pestilence
  4. if (m_spellInfo->SpellFamilyFlags[1]&0x10000)
  5. {
  6. // Get diseases on target of spell
  7. if (m_targets.GetUnitTarget() && // Glyph of Disease - cast on unit target too to refresh aura
  8. (m_targets.GetUnitTarget() != unitTarget || m_caster->GetAura(63334)))
  9. {
  10. // And spread them on target
  11. // Blood Plague
  12. if (m_targets.GetUnitTarget()->GetAura(55078))
  13. m_caster->CastSpell(unitTarget, 55078, true);
  14. // Frost Fever
  15. if (m_targets.GetUnitTarget()->GetAura(55095))
  16. m_caster->CastSpell(unitTarget, 55095, true);
  17.  
  18. if (m_caster->GetAura(51099) || m_caster->GetAura(51160) || m_caster->GetAura(51161))
  19. {
  20. // Ebon Plague - Rank 1
  21. if (m_targets.GetUnitTarget()->GetAura(51726))
  22. m_caster->CastSpell(unitTarget, 51726, true);
  23.  
  24. // Ebon Plague - Rank 2
  25. if (m_targets.GetUnitTarget()->GetAura(51734))
  26. m_caster->CastSpell(unitTarget, 51734, true);
  27.  
  28. // Ebon Plague - Rank 3
  29. if (m_targets.GetUnitTarget()->GetAura(51735))
  30. m_caster->CastSpell(unitTarget, 51735, true);
  31. }
  32. }
  33. }
  34. break;
  35. }
Add Comment
Please, Sign In to add comment