Fix spell 16630 and 16631

The trigger value for spells 16630 and 16631 in the Classic DBC files
were wrong: set to 100% chance of triggering spell while tooltip shows
that they should be of 67% and 34% respectively.
Values were corrected in the TBC and WotLK DBC files.
This commit is contained in:
cala 2016-07-07 20:18:53 +01:00 committed by Antz
parent 83a8c500f1
commit b7130b86a6

View File

@ -1340,7 +1340,22 @@ void Spell::EffectTriggerSpell(SpellEffectIndex eff_idx)
// special cases
switch (triggered_spell_id)
{
// Vanish (not exist)
// Temporal Parasite Summon #2, special case because chance is set to 101% in DBC while description is 67%
case 16630:
if (urand(0, 100) < 67)
{
m_caster->CastSpell(unitTarget, triggered_spell_id, true);
}
return;
// Temporal Parasite Summon #3, special case because chance is set to 101% in DBC while description is 34%
case 16631:
if (urand(0, 100) < 34)
{
m_caster->CastSpell(unitTarget, triggered_spell_id, true);
}
return;
// Vanish (not exist)
case 18461:
{
unitTarget->RemoveSpellsCausingAura(SPELL_AURA_MOD_ROOT);