mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-28 17:56:25 -04:00
Added logging for when an attack ship cannot be spawned.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user