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.
This commit is contained in:
cala 2016-07-07 21:23:50 +01:00 committed by Antz
parent 0ce9854825
commit 7e3458df3f

View File

@ -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.