Fix constrictor hunt ship script for some unusual cases

This commit is contained in:
cim 2014-07-26 20:10:17 +01:00
parent 26420402a0
commit aa5e137f18

View File

@ -68,7 +68,8 @@ this.shipSpawned = function ()
this.shipDied = function (killer)
{
if (killer.isPlayer)
// check mission variable, just in case
if (killer && killer.isPlayer && missionVariables.conhunt === "STAGE_1")
{
missionVariables.conhunt = "CONSTRICTOR_DESTROYED";
}