allow invalid terrain targets for Air/Water bound weapons
made terrain targeting consistent with actors
This commit is contained in:
@@ -179,6 +179,11 @@ namespace OpenRA.GameRules
|
||||
if (!world.Map.IsInMap(cell))
|
||||
return false;
|
||||
|
||||
var cellInfo = world.GetTerrainInfo(cell);
|
||||
if (!ValidTargets.Intersect(cellInfo.TargetTypes).Any()
|
||||
|| InvalidTargets.Intersect(cellInfo.TargetTypes).Any())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user