Add IgnoresCloak trait

This commit is contained in:
penev92
2015-01-11 16:39:16 +01:00
parent 0831b105cb
commit ea9ebaa08d
3 changed files with 20 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Traits
public virtual bool TargetableBy(Actor self, Actor viewer)
{
if (cloak == null)
if (cloak == null || (!viewer.IsDead && viewer.HasTrait<IgnoresCloak>()))
return true;
return cloak.IsVisible(self, viewer.Owner);