Chrono tanya fix and CHANGELOG entry for it
This commit is contained in:
@@ -24,6 +24,7 @@ NEW:
|
|||||||
Increased torpedo splash damage and raised multiplier vs. concrete.
|
Increased torpedo splash damage and raised multiplier vs. concrete.
|
||||||
Fixed transparency glitches in the sniper icon.
|
Fixed transparency glitches in the sniper icon.
|
||||||
Removed health bars and selection boxes from walls.
|
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:
|
Tiberian Dawn:
|
||||||
Commando can now plant C4 on bridges.
|
Commando can now plant C4 on bridges.
|
||||||
Added the Asset Browser to the Extras menu.
|
Added the Asset Browser to the Extras menu.
|
||||||
|
|||||||
@@ -39,14 +39,15 @@ namespace OpenRA.Mods.RA.Activities
|
|||||||
if (killCargo && self.HasTrait<Cargo>())
|
if (killCargo && self.HasTrait<Cargo>())
|
||||||
{
|
{
|
||||||
var cargo = self.Trait<Cargo>();
|
var cargo = self.Trait<Cargo>();
|
||||||
while (!cargo.IsEmpty(self))
|
if (chronosphere != null)
|
||||||
{
|
{
|
||||||
if (chronosphere != null && chronosphere.HasTrait<UpdatesPlayerStatistics>())
|
while (!cargo.IsEmpty(self))
|
||||||
chronosphere.Owner.PlayerActor.Trait<PlayerStatistics>().UnitsKilled++;
|
{
|
||||||
|
var a = cargo.Unload(self);
|
||||||
var a = cargo.Unload(self);
|
// Kill all the units that are unloaded into the void
|
||||||
if (a.HasTrait<UpdatesPlayerStatistics>())
|
// Kill() handles kill and death statistics
|
||||||
a.Owner.PlayerActor.Trait<PlayerStatistics>().UnitsDead++;
|
a.Kill(chronosphere);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user