[9469] Add dummy effect of spell 51333

This commit is contained in:
NoFantasy 2010-02-27 14:19:46 +01:00
parent 4b00529f56
commit b91bd9ef83
2 changed files with 13 additions and 1 deletions

View file

@ -1384,6 +1384,18 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
return;
}
case 51333: // Dig For Treasure
{
if (!unitTarget)
return;
if (roll_chance_i(75))
m_caster->CastSpell(unitTarget, 51370, true, m_CastItem);
else
m_caster->CastSpell(m_caster, 51345, true);
return;
}
case 51582: // Rocket Boots Engaged (Rocket Boots Xtreme and Rocket Boots Xtreme Lite)
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)