From 01f59cab70c7c7ce8dfcdb9845f84136f482504a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Sat, 24 Nov 2018 19:58:19 +0100 Subject: [PATCH] agp --- dist/autoloader.js | 4 ++-- dist/standalone.js | 2 +- script/mission/handler.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/autoloader.js b/dist/autoloader.js index 3908e01..b328fc9 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Sat Nov 24 2018 19:55:13 GMT+0100 (CET)*/ +/*Generated on:Sat Nov 24 2018 19:58:18 GMT+0100 (CET)*/ var AutomaticDispose_Branch = "master"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var da_lss_adis_time = new Date().getTime(); @@ -5860,7 +5860,7 @@ ADisDB.on("ready", () => { { $("#vehicle_checkbox_" + VehicleID).click(); ADis_VehiclesNeed["2"]--; - } else if ($(this).attr("vehicle_type" == "AB-Einsatzleitung") && + } else if (VehicleType == "AB-Einsatzleitung" && ADis_VehiclesNeed["3"] + ADis_VehiclesNeed["34"] + ADis_VehiclesNeed["78"] > 0) // ELW 1 + ELW 2 { $("#vehicle_checkbox_" + VehicleID).click(); diff --git a/dist/standalone.js b/dist/standalone.js index e709cf5..de2e790 100644 --- a/dist/standalone.js +++ b/dist/standalone.js @@ -1,4 +1,4 @@ -/*Generated on:Sat Nov 24 2018 19:55:13 GMT+0100 (CET)*/ +/*Generated on:Sat Nov 24 2018 19:58:18 GMT+0100 (CET)*/ function includesString(string1, string2) { return string1.toLowerCase().includes(string2.toLowerCase()); } diff --git a/script/mission/handler.js b/script/mission/handler.js index c3508c8..8f34825 100755 --- a/script/mission/handler.js +++ b/script/mission/handler.js @@ -581,7 +581,7 @@ function ADis_ProcessFireDepartment() { { $("#vehicle_checkbox_" + VehicleID).click(); ADis_VehiclesNeed["2"]--; - } else if ($(this).attr("vehicle_type" == "AB-Einsatzleitung") && + } else if (VehicleType == "AB-Einsatzleitung" && ADis_VehiclesNeed["3"] + ADis_VehiclesNeed["34"] + ADis_VehiclesNeed["78"] > 0) // ELW 1 + ELW 2 { $("#vehicle_checkbox_" + VehicleID).click();