Merge pull request #4941 from Mailaender/kill-husks

Made husks targetable with force fire only
This commit is contained in:
Paul Chote
2014-04-04 03:56:33 +13:00
9 changed files with 31 additions and 2 deletions

View File

@@ -85,6 +85,11 @@ namespace OpenRA.Traits
return true;
}
public bool RequiresForceFire
{
get { return targetable != null && targetable.RequiresForceFire; }
}
// Representative position - see Positions for the full set of targetable positions.
public WPos CenterPosition
{

View File

@@ -233,6 +233,7 @@ namespace OpenRA.Traits
string[] TargetTypes { get; }
IEnumerable<WPos> TargetablePositions(Actor self);
bool TargetableBy(Actor self, Actor byActor);
bool RequiresForceFire { get; }
}
public interface INotifyStanceChanged