mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
Added logging to understand which creatures do not have a socialGroup assigned to them (to prevent exceptions).
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user