From bbdb059764914036d62fe4ecccca234f89801f45 Mon Sep 17 00:00:00 2001 From: QAston Date: Sun, 14 Jun 2009 21:04:44 +0200 Subject: *Fix Pestilence and Glyph of Diseases. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index e6d19f1a81d..7f3e8a30adb 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5345,6 +5345,25 @@ void Spell::EffectScriptEffect(uint32 effIndex) } break; } + 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); + } + } + } } // normal DB scripted effect -- cgit v1.2.3