[11125] Add dummy effect of spell 39189

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-02-10 00:58:14 +01:00
parent 01178b69e5
commit 0d16b0bdc7
2 changed files with 15 additions and 1 deletions

View file

@ -1232,6 +1232,20 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
return;
}
case 39189: // Sha'tari Torch
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT || m_caster->GetTypeId() != TYPEID_PLAYER)
return;
// Flames
if (unitTarget->HasAura(39199))
return;
unitTarget->CastSpell(unitTarget, 39199, true);
((Player*)m_caster)->KilledMonsterCredit(unitTarget->GetEntry(), unitTarget->GetObjectGuid());
((Creature*)unitTarget)->ForcedDespawn(10000);
return;
}
case 40802: // Mingo's Fortune Generator (Mingo's Fortune Giblets)
{
// selecting one from Bloodstained Fortune item