From 94f7a7709deb9b51050a6cc0f13f9f37b04d6a2d Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sat, 22 May 2010 16:18:29 +0400 Subject: [PATCH] [9956] Spell 45524 expected apply debuf 55095 to target at cast. --- src/game/SpellAuras.cpp | 8 ++++++++ src/game/SpellEffects.cpp | 2 +- src/shared/revision_nr.h | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index ffcfff32f..843ef5c7c 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -6460,6 +6460,14 @@ void Aura::HandleSpellSpecificBoosts(bool apply) // second part of spell apply switch (GetId()) { + case 45524: // Chains of Ice + { + if (apply) + spellId1 = 55095; // Frost Fever + else + return; + break; + } case 49039: spellId1 = 50397; break; // Lichborne case 48263: // Frost Presence diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 99ee0a93d..9ee6095fe 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2421,7 +2421,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) { if (m_caster->IsFriendlyTo(unitTarget)) { - if (unitTarget->GetCreatureType() != CREATURE_TYPE_UNDEAD) + if (!unitTarget || unitTarget->GetCreatureType() != CREATURE_TYPE_UNDEAD) return; int32 bp = int32(damage * 1.5f); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 79b86a9f5..fcf73e013 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9955" + #define REVISION_NR "9956" #endif // __REVISION_NR_H__