Added logging for when an attack ship cannot be spawned.

This commit is contained in:
Cekis
2017-02-04 17:10:33 +00:00
parent 4c9b88fc23
commit 82b4036971
2 changed files with 2 additions and 2 deletions
@@ -352,7 +352,7 @@ public class destroy_duty extends script.base_script
gloc = gloc.move_p(vd);
}
obj_id newship = space_create.createShipHyperspace(ships[j][ship], gloc);
if(!isValidId(newship) || !isGameObjectTypeOf(getGameObjectType(newShip),GOT_ship)) {
if(!isValidId(newship) || !isGameObjectTypeOf(getGameObjectType(newship),GOT_ship)) {
LOG("DESIGNER_FATAL","QUEST: spacequest/" + questType + "/" + questName + " New ship (" + ships[j][ship] + ":" + newship + ") which " + (isGameObjectTypeOf(getGameObjectType(newship),GOT_ship) ? "is" : "is not") + " a ship could not be created.");
continue;
}
@@ -481,7 +481,7 @@ public class combat_base extends script.base_script
return;
}
dictionary dctWeaponStats = utils.getDictionaryScriptVar(objWeapon, "dctWeaponStats");
if(dctWeaponStatus)
if(dctWeaponStats != null)
utils.setScriptVar(egg, "dctWeaponStats", dctWeaponStats);
utils.setScriptVar(egg, "isAutoAimed", isAutoAimed);
doStandardDelayedAction(egg, target, attackName, actionData, instantHit);