From 021a1b0f9a590736739241dd01fcaebc806fcbd3 Mon Sep 17 00:00:00 2001 From: Cekis Date: Sun, 29 Jan 2017 03:25:42 +0000 Subject: [PATCH] Added logging to understand which creatures do not have a socialGroup assigned to them (to prevent exceptions). --- .../sys.server/compiled/game/script/ai/ai_combat_assist.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sku.0/sys.server/compiled/game/script/ai/ai_combat_assist.java b/sku.0/sys.server/compiled/game/script/ai/ai_combat_assist.java index 54ce3e76a..d74a7ce26 100755 --- a/sku.0/sys.server/compiled/game/script/ai/ai_combat_assist.java +++ b/sku.0/sys.server/compiled/game/script/ai/ai_combat_assist.java @@ -65,6 +65,10 @@ public class ai_combat_assist extends script.base_script } String type = getStringObjVar(self, "creature_type"); dictionary aiData = dataTableGetRow("datatables/mob/creatures.iff", type); + if(aiData == null){ + LOG("DESIGNER_FATAL", "Creature Type (" + type + ") not found in creatures table (datatables/mob/creatures.iff)!!"); + return false; + } float assistRange = aiData.getFloat("assist"); if (assistRange == 0.0f) {