Use TargetType.Invalid checks instead of IsValidFor
This commit is contained in:
@@ -31,10 +31,10 @@ namespace OpenRA.Mods.Common.Warheads
|
||||
|
||||
public override void DoImpact(Target target, WarheadArgs args)
|
||||
{
|
||||
var firedBy = args.SourceActor;
|
||||
if (!target.IsValidFor(firedBy))
|
||||
if (target.Type == TargetType.Invalid)
|
||||
return;
|
||||
|
||||
var firedBy = args.SourceActor;
|
||||
var world = firedBy.World;
|
||||
|
||||
if (Chance < world.LocalRandom.Next(100))
|
||||
|
||||
Reference in New Issue
Block a user