Bugfix: take BaseNormal into account for building range checks
This commit is contained in:
@@ -171,7 +171,7 @@ namespace OpenRA
|
||||
for( int x = scanStart.X ; x < scanEnd.X ; x++ )
|
||||
{
|
||||
var at = world.WorldActor.traits.Get<BuildingInfluence>().GetBuildingAt( new int2( x, y ) );
|
||||
if( at != null && at.Owner == p )
|
||||
if( at != null && at.Owner == p && at.Info.Traits.Get<BuildingInfo>().BaseNormal)
|
||||
nearnessCandidates.Add( new int2( x, y ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user