From 7e3458df3f3bb64af951e17b4289569b2cd03715 Mon Sep 17 00:00:00 2001 From: cala Date: Thu, 7 Jul 2016 21:23:50 +0100 Subject: [PATCH] Fix spell 23209 and 23253 The trigger value for spells 23209 and 23253 in the Classic DBC files were wrong: set to 100% chance of triggering spell while tooltip shows that they should be of 55% and 35% respectively. Spells were removed in TBC and WotLK DBC files. --- src/game/WorldHandlers/SpellEffects.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/game/WorldHandlers/SpellEffects.cpp b/src/game/WorldHandlers/SpellEffects.cpp index 67b58e6c..70475497 100644 --- a/src/game/WorldHandlers/SpellEffects.cpp +++ b/src/game/WorldHandlers/SpellEffects.cpp @@ -1397,6 +1397,22 @@ void Spell::EffectTriggerSpell(SpellEffectIndex eff_idx) m_caster->CastSpell(unitTarget, spellId, true); return; } + + // Terrordale Haunting Spirit #2, special case because chance is set to 101% in DBC while description is 55% + case 23209: + if (urand(0, 100) < 55) + { + m_caster->CastSpell(unitTarget, triggered_spell_id, true); + } + return; + // Terrordale Haunting Spirit #3, special case because chance is set to 101% in DBC while description is 35% + case 23253: + if (urand(0, 100) < 35) + { + m_caster->CastSpell(unitTarget, triggered_spell_id, true); + } + return; + // just skip case 23770: // Sayge's Dark Fortune of * // not exist, common cooldown can be implemented in scripts if need.