Merge pull request #11105 from obrakmann/fix11046_subs-not-attackable

Fix submarines not being attackable when surfaced
This commit is contained in:
abcdefg30
2016-04-14 17:45:23 +02:00

View File

@@ -84,7 +84,10 @@ namespace OpenRA.Mods.Common.Traits
// The upgrade manager exists, but may not have finished being created yet.
// We'll defer the upgrades until the end of the tick, at which point it will be ready.
if (Cloaked)
{
wasCloaked = true;
self.World.AddFrameEndTask(_ => GrantUpgrades(self));
}
}
public bool Cloaked { get { return !IsTraitDisabled && remainingTime <= 0; } }