Introduce Target.Type property.
This commit is contained in:
@@ -21,7 +21,7 @@ namespace OpenRA.Mods.RA.Activities
|
||||
|
||||
public override Activity Tick(Actor self)
|
||||
{
|
||||
if (IsCanceled || !target.IsValid)
|
||||
if (IsCanceled || target.Type != TargetType.Actor)
|
||||
return NextActivity;
|
||||
|
||||
var health = target.Actor.Trait<Health>();
|
||||
|
||||
Reference in New Issue
Block a user