fix remote engineer repair exploit

This commit is contained in:
Chris Forbes
2010-09-16 18:19:06 +12:00
parent 106fbcd5af
commit 06aba5da46

View File

@@ -22,7 +22,10 @@ namespace OpenRA.Mods.RA.Activities
public IActivity Tick(Actor self)
{
if (!target.IsValid) return NextActivity;
if (!target.IsValid) return NextActivity;
if ((target.Actor.Location - self.Location).Length > 1)
return NextActivity;
var health = target.Actor.Trait<Health>();
if (health.DamageState == DamageState.Undamaged)
return NextActivity;