From b8c1135b3b08449d5fb075e14874f57a4dd87d0b Mon Sep 17 00:00:00 2001 From: FlightControl_Master Date: Fri, 15 Dec 2017 13:33:24 +0100 Subject: [PATCH] When S_EVENT_PLAYER_ENTER_UNIT is called, then the unit is not alive yet. --- Moose Development/Moose/Core/Event.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Core/Event.lua b/Moose Development/Moose/Core/Event.lua index 40f225ade..60df23239 100644 --- a/Moose Development/Moose/Core/Event.lua +++ b/Moose Development/Moose/Core/Event.lua @@ -744,7 +744,7 @@ function EVENT:onEvent( Event ) local EventMeta = _EVENTMETA[Event.id] - --self:E( { EventMeta.Text, Event } ) -- Activate the see all incoming events ... + self:E( { EventMeta.Text, Event } ) -- Activate the see all incoming events ... if self and self.Events and @@ -886,6 +886,7 @@ function EVENT:onEvent( Event ) -- So now the EventClass must be a UNIT class!!! We check if it is still "Alive". if EventClass:IsAlive() or + Event.id == EVENTS.PlayerEnterUnit or Event.id == EVENTS.Crash or Event.id == EVENTS.Dead then @@ -935,6 +936,7 @@ function EVENT:onEvent( Event ) -- So now the EventClass must be a GROUP class!!! We check if it is still "Alive". if EventClass:IsAlive() or + Event.id == EVENTS.PlayerEnterUnit or Event.id == EVENTS.Crash or Event.id == EVENTS.Dead then