mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 22:37:04 +00:00
[11941] Implement effects for spells 27687, 27695
also fix another type in extractor-binary script (thanks again nighoo) Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
8e0edc0383
commit
fcbde94267
3 changed files with 30 additions and 3 deletions
|
|
@ -6579,6 +6579,33 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
|
||||
return;
|
||||
}
|
||||
case 27687: // Summon Bone Minions
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
// Spells 27690, 27691, 27692, 27693 are missing from DBC
|
||||
// So we need to summon creature 16119 manually
|
||||
float x, y, z;
|
||||
float angle = unitTarget->GetOrientation();
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
{
|
||||
unitTarget->GetNearPoint(unitTarget, x, y, z, unitTarget->GetObjectBoundingRadius(), 5.0f, angle + i*M_PI_F/2);
|
||||
unitTarget->SummonCreature(16119, x, y, z, angle, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 10*MINUTE*IN_MILLISECONDS);
|
||||
}
|
||||
return;
|
||||
}
|
||||
case 27695: // Summon Bone Mages
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
unitTarget->CastSpell(unitTarget, 27696, true);
|
||||
unitTarget->CastSpell(unitTarget, 27697, true);
|
||||
unitTarget->CastSpell(unitTarget, 27698, true);
|
||||
unitTarget->CastSpell(unitTarget, 27699, true);
|
||||
return;
|
||||
}
|
||||
case 28560: // Summon Blizzard
|
||||
{
|
||||
if (!unitTarget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue