[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:
Xfurry 2012-04-06 23:48:52 +02:00 committed by Schmoozerd
parent 8e0edc0383
commit fcbde94267
3 changed files with 30 additions and 3 deletions

View file

@ -78,7 +78,7 @@ fi
if [ "$USE_MMAPS_OFFMESH" = "1" ] if [ "$USE_MMAPS_OFFMESH" = "1" ]
then then
echo "Only extracting offmesh meshes" echo "Only extracting offmesh meshes"
MovemapGen.sh offmesh $LOG_FILE $DETAIL_LOG_FILE MoveMapGen.sh offmesh $LOG_FILE $DETAIL_LOG_FILE
exit 0 exit 0
fi fi
@ -158,5 +158,5 @@ fi
## Extract mmaps ## Extract mmaps
if [ "$USE_MMAPS" = "1" ] if [ "$USE_MMAPS" = "1" ]
then then
MovemapGen.sh $NUM_CPU $LOG_FILE $DETAIL_LOG_FILE MoveMapGen.sh $NUM_CPU $LOG_FILE $DETAIL_LOG_FILE
fi fi

View file

@ -6579,6 +6579,33 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
return; 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 case 28560: // Summon Blizzard
{ {
if (!unitTarget) if (!unitTarget)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11940" #define REVISION_NR "11941"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__