Reworked cloaking behaviour

This commit is contained in:
teees
2015-12-10 11:04:55 +01:00
parent 9db974cfe9
commit f46185b85f
7 changed files with 124 additions and 65 deletions

View File

@@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Activities
if (target.IsDead)
return;
if (cloak != null && cloak.Info.UncloakOnDemolish)
if (cloak != null && cloak.Info.UncloakOn.HasFlag(UncloakType.Demolish))
cloak.Uncloak();
for (var f = 0; f < flashes; f++)