Scripts/VP: solved some gravity related issues for Slipstreams

This commit is contained in:
Ovahlord committed 2018-08-24 19:24:48 +02:00
1 parent f8af035466
commit 76a3ec534d
2 files changed
+9 -1

No files matched your search

@@ -201,7 +201,11 @@ public:
{
npc_slipstreamAI(Creature* creature) : ScriptedAI(creature)
{
me->SetDisableGravity(true);
Initialize();
}
void Initialize()
{
me->SetExtraUnitMovementFlags(MOVEMENTFLAG2_NO_STRAFE | MOVEMENTFLAG2_NO_JUMPING);
}
@@ -211,7 +215,10 @@ public:
return;
if (me->HasAura(SPELL_SLIPSTREAM_SPELLCLICK))
{
DoCast(who, SPELL_SLIPSTREAM_FIRST, true);
who->SetDisableGravity(true, true);
}
else if (me->HasAura(SPELL_SLIPSTREAM_FIRST_CONTROL_VEHICLE_AURA))
DoCast(who, SPELL_SLIPSTREAM_SECOND, true);
else if (me->HasAura(SPELL_SLIPSTREAM_SECOND_CONTROL_VEHICLE_AURA))