Merge pull request #3545 from pchote/infantry-range-fix
Infantry range fix
This commit is contained in:
@@ -80,7 +80,7 @@ namespace OpenRA.Traits
|
||||
if (targetable == null)
|
||||
return new []{actor.CenterPosition};
|
||||
|
||||
return targetable.TargetableCells(actor).Select(c => c.CenterPosition);
|
||||
return targetable.TargetablePositions(actor);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ namespace OpenRA.Traits
|
||||
public interface ITargetable
|
||||
{
|
||||
string[] TargetTypes { get; }
|
||||
IEnumerable<CPos> TargetableCells(Actor self);
|
||||
IEnumerable<WPos> TargetablePositions(Actor self);
|
||||
bool TargetableBy(Actor self, Actor byActor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user