diff --git a/CHANGELOG b/CHANGELOG index 3148c4bf25..88c687c986 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -24,6 +24,7 @@ NEW: Increased torpedo splash damage and raised multiplier vs. concrete. Fixed transparency glitches in the sniper icon. Removed health bars and selection boxes from walls. + Fixed build-limited units such as Tanya being unavailable after using the Chronosphere on a vehicle she is in. Tiberian Dawn: Commando can now plant C4 on bridges. Added the Asset Browser to the Extras menu. diff --git a/OpenRA.Mods.RA/Activities/Teleport.cs b/OpenRA.Mods.RA/Activities/Teleport.cs index 1d044b0466..6ac8aae624 100755 --- a/OpenRA.Mods.RA/Activities/Teleport.cs +++ b/OpenRA.Mods.RA/Activities/Teleport.cs @@ -39,14 +39,15 @@ namespace OpenRA.Mods.RA.Activities if (killCargo && self.HasTrait()) { var cargo = self.Trait(); - while (!cargo.IsEmpty(self)) + if (chronosphere != null) { - if (chronosphere != null && chronosphere.HasTrait()) - chronosphere.Owner.PlayerActor.Trait().UnitsKilled++; - - var a = cargo.Unload(self); - if (a.HasTrait()) - a.Owner.PlayerActor.Trait().UnitsDead++; + while (!cargo.IsEmpty(self)) + { + var a = cargo.Unload(self); + // Kill all the units that are unloaded into the void + // Kill() handles kill and death statistics + a.Kill(chronosphere); + } } }