[10723] Add dummy aura effect of 51405 and dummy effect of 51420

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-11-15 17:30:21 +01:00
parent 76dfdd336f
commit 9c4be1d308
3 changed files with 48 additions and 1 deletions

View file

@ -1524,6 +1524,29 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
return;
}
case 51420: // Digging for Treasure Ping
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;
if (m_caster->GetTypeId() != TYPEID_PLAYER)
return;
// Not expecting any MINI_PET here, the ones used for related quests are
// fighting "companions" (effMiscValueB 387). Needs to be corrected.
Pet* pPet = ((Player*)m_caster)->GetMiniPet();
if (!pPet)
return;
pPet->SetFacingToObject(unitTarget);
// Digging for Treasure
pPet->CastSpell(unitTarget, 51405, true);
((Creature*)unitTarget)->ForcedDespawn(1);
return;
}
case 51582: // Rocket Boots Engaged (Rocket Boots Xtreme and Rocket Boots Xtreme Lite)
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)