Fixed nod01, not being able to lose mission
This commit is contained in:
@@ -121,13 +121,15 @@ namespace OpenRA.Mods.Cnc.Missions
|
||||
}
|
||||
}
|
||||
|
||||
if (!world.Actors.Any(a => (a.Owner == nod) && a.IsInWorld && !a.IsDead()))
|
||||
{
|
||||
Action afterFMV = () =>
|
||||
{
|
||||
Sound.StopMusic();
|
||||
MissionFailed("The Nod forces in the area have been wiped out.");
|
||||
};
|
||||
var unitsAndBuildings = world.Actors.Where(a => !a.IsDead() && a.IsInWorld && (a.HasTrait<Mobile>() || (a.HasTrait<Building>() && !a.HasTrait<Wall>())));
|
||||
|
||||
if (!unitsAndBuildings.Any(a => a.Owner == nod))
|
||||
{
|
||||
Action afterFMV = () =>
|
||||
{
|
||||
Sound.StopMusic();
|
||||
MissionFailed("The Nod forces in the area have been wiped out.");
|
||||
};
|
||||
Game.RunAfterDelay(0, () => Media.PlayFMVFullscreen(world, "nodlose.vqa", afterFMV));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user