From 853f780015f99077911b5c0216774482e48c3360 Mon Sep 17 00:00:00 2001 From: FlightControl Date: Wed, 12 Apr 2017 15:15:37 +0200 Subject: [PATCH] Fixes issue #398 -- I think this should fix it! --- Moose Development/Moose/Core/Event.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Core/Event.lua b/Moose Development/Moose/Core/Event.lua index a5c352b28..c03eac9a9 100644 --- a/Moose Development/Moose/Core/Event.lua +++ b/Moose Development/Moose/Core/Event.lua @@ -926,7 +926,7 @@ function EVENT:onEvent( Event ) -- If the EventData is not bound to a specific unit, then call the EventClass EventFunction. -- Note that here the EventFunction will need to implement and determine the logic for the relevant source- or target unit, or weapon. - if (Event.IniDCSUnit or Event.WeaponUNIT) and not EventData.EventUnit then + if not EventData.EventUnit then -- First test if a EventFunction is Set, otherwise search for the default function if EventData.EventFunction then