Make Warhead.IsValidTarget method protected

IsValidTarget is never called from outside warheads.
This commit is contained in:
reaperrr
2020-05-08 13:12:52 +02:00
committed by abcdefg30
parent 3eabc59921
commit 978c69d0c3

View File

@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Warheads
[Desc("The color used for this warhead's visualization in the world's `WarheadDebugOverlay` trait.")]
public readonly Color DebugOverlayColor = Color.Red;
public bool IsValidTarget(BitSet<TargetableType> targetTypes)
protected bool IsValidTarget(BitSet<TargetableType> targetTypes)
{
return ValidTargets.Overlaps(targetTypes) && !InvalidTargets.Overlaps(targetTypes);
}