*Fix some summon vehicle spells.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-24 12:54:36 -05:00
parent 675cac9a6b
commit a029ae15e5
6 changed files with 28 additions and 38 deletions

View File

@@ -179,7 +179,7 @@ Creature *ScriptedAI::DoSummonFlyer(uint32 uiEntry, WorldObject *obj, float _fZ,
{
float fX, fY, fZ;
obj->GetGroundPointAroundUnit(fX, fY, fZ, fRadius * rand_norm(), rand_norm()*2*M_PI);
return me->SummonCreature(uiEntry, fX, fY, _fZ, me->GetOrientation(), uiType, uiDespawntime);
return me->SummonCreature(uiEntry, fX, fY, fZ + _fZ, me->GetOrientation(), uiType, uiDespawntime);
}