mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[10723] Add dummy aura effect of 51405 and dummy effect of 51420
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
76dfdd336f
commit
9c4be1d308
3 changed files with 48 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue