mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +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
|
|
@ -78,7 +78,7 @@ fi
|
|||
if [ "$USE_MMAPS_OFFMESH" = "1" ]
|
||||
then
|
||||
echo "Only extracting offmesh meshes"
|
||||
MovemapGen.sh offmesh $LOG_FILE $DETAIL_LOG_FILE
|
||||
MoveMapGen.sh offmesh $LOG_FILE $DETAIL_LOG_FILE
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
@ -158,5 +158,5 @@ fi
|
|||
## Extract mmaps
|
||||
if [ "$USE_MMAPS" = "1" ]
|
||||
then
|
||||
MovemapGen.sh $NUM_CPU $LOG_FILE $DETAIL_LOG_FILE
|
||||
MoveMapGen.sh $NUM_CPU $LOG_FILE $DETAIL_LOG_FILE
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11940"
|
||||
#define REVISION_NR "11941"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue