attack if in range of any cell of a building
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
|
||||
using System.Drawing;
|
||||
using OpenRA.Graphics;
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace OpenRA.Traits
|
||||
{
|
||||
@@ -31,6 +32,11 @@ namespace OpenRA.Traits
|
||||
public virtual string[] TargetTypes
|
||||
{
|
||||
get { return Info.TargetTypes;}
|
||||
}
|
||||
|
||||
public virtual IEnumerable<int2> TargetableSquares( Actor self )
|
||||
{
|
||||
yield return self.Location;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user