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

@ -521,10 +521,10 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
switch (inner_roll) switch (inner_roll)
{ {
case 1: case 1:
m_caster->CastSpell(m_caster, 13003, true, m_CastItem); // -250 AP + shrink caster m_caster->CastSpell(m_caster, 13003, true, m_CastItem); // -250 AP + shrink caster
break; break;
case 2: case 2:
m_caster->CastSpell(m_caster, 13010, true, m_CastItem); // -250AP + shrink all caster's party m_caster->CastSpell(m_caster, 13010, true, m_CastItem); // -250AP + shrink all caster's party
break; break;
default: default:
unitTarget->CastSpell(unitTarget, 13004, true, NULL); // +250AP + grow victim unitTarget->CastSpell(unitTarget, 13004, true, NULL); // +250AP + grow victim
@ -1340,7 +1340,22 @@ void Spell::EffectTriggerSpell(SpellEffectIndex eff_idx)
// special cases // special cases
switch (triggered_spell_id) 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: case 18461:
{ {
unitTarget->RemoveSpellsCausingAura(SPELL_AURA_MOD_ROOT); unitTarget->RemoveSpellsCausingAura(SPELL_AURA_MOD_ROOT);