Remove Actor.HasTrait<T>()
This commit is contained in:
@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[Desc("Guard the target actor.")]
|
||||
public void Guard(Actor targetActor)
|
||||
{
|
||||
if (targetActor.HasTrait<Guardable>())
|
||||
if (targetActor.Info.Traits.Contains<GuardableInfo>())
|
||||
guard.GuardTarget(Self, Target.FromActor(targetActor));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user