Scripts/TotFW: removed a spell cast that was causing the Fall Catcher vehicle not picking up its summoner properly. This issue has been caused by the now properly working automatic vehicle enter mechanic

This commit is contained in:
Ovahlord committed 2020-05-01 22:12:30 +02:00
1 parent cd57f79a1c
commit bcccf2bd6c
1 file changed
+1 -11
@@ -36,7 +36,6 @@ enum Spells
SPELL_JET_STREAM_TRIGGERED = 84610,
SPELL_CATCH_FALL = 85268,
SPELL_CATCH_FALL_RIDE_VEHICLE = 85282,
SPELL_EJECT_ALL_PASSENGERS = 68576,
SPELL_CATCH_FALL_REMOVAL = 85274,
@@ -120,19 +119,10 @@ class npc_totfw_fall_catcher : public CreatureScript
struct npc_totfw_fall_catcherAI : public ScriptedAI
{
npc_totfw_fall_catcherAI(Creature* creature) : ScriptedAI(creature)
{
Initialize();
}
void Initialize()
{
_guid = ObjectGuid::Empty;
}
npc_totfw_fall_catcherAI(Creature* creature) : ScriptedAI(creature) { }
void IsSummonedBy(Unit* summoner) override
{
summoner->CastSpell(me, SPELL_CATCH_FALL_RIDE_VEHICLE, true);
_events.ScheduleEvent(EVENT_EJECT_ALL_PASSENGERS, Seconds(10) + Milliseconds(400));
}