diff options
author | QAston <none@none> | 2009-06-14 21:04:44 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-06-14 21:04:44 +0200 |
commit | bbdb059764914036d62fe4ecccca234f89801f45 (patch) | |
tree | 0f32c41ecfdcd00d667f2dcc88a9001045b59342 /src | |
parent | f367565ddb1a85ed32a988b2eac9ecd75b8c59c2 (diff) |
*Fix Pestilence and Glyph of Diseases.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
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 |