Merge pull request #11257 from HenrytheSlav/c4lockup
Buildings get locked by Demolishable activity before their destruction
This commit is contained in:
@@ -57,6 +57,10 @@ namespace OpenRA.Mods.Common.Activities
|
||||
if (cloak != null && cloak.Info.UncloakOn.HasFlag(UncloakType.Demolish))
|
||||
cloak.Uncloak();
|
||||
|
||||
var building = target.TraitOrDefault<Building>();
|
||||
if (building != null)
|
||||
building.Lock();
|
||||
|
||||
for (var f = 0; f < flashes; f++)
|
||||
w.Add(new DelayedAction(flashesDelay + f * flashInterval, () =>
|
||||
w.Add(new FlashTarget(target, ticks: flashDuration))));
|
||||
|
||||
Reference in New Issue
Block a user