Core/Spells: Fix Spell 54577 - Support for Quest 12828

Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
This commit is contained in:
Ottowayne
2011-01-06 19:33:22 +01:00
committed by Machiavelli
parent 855e910298
commit b0c559e704

View File

@@ -1211,6 +1211,18 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
m_caster->SendMessageToSet(&data,true);
return;
}
case 54577: // U.D.E.D.
{
if (!(unitTarget->GetEntry() == 29402))
return;
m_caster->SummonGameObject(192693, unitTarget->GetPositionX(), unitTarget->GetPositionY(), unitTarget->GetPositionZ(), unitTarget->GetOrientation(), 0, 0, 0, 0, 100);
for (int i = 1; i <= 4; i++)
m_caster->SummonGameObject(191567, float(unitTarget->GetPositionX() + irand(-7, 7)), float(unitTarget->GetPositionY() + irand(-7, 7)), unitTarget->GetPositionZ(), unitTarget->GetOrientation(), 0, 0, 0, 0, 100);
unitTarget->Kill(unitTarget);
return;
}
}
break;