Merge pull request #3726 from pchote/cloak-fix

Cloak fixes
This commit is contained in:
Matthias Mailänder
2013-08-23 09:27:56 -07:00
36 changed files with 135 additions and 132 deletions

View File

@@ -496,7 +496,7 @@ namespace OpenRA.Mods.RA.Move
public bool CanTarget(Actor self, Target target, List<Actor> othersAtTarget, TargetModifiers modifiers, ref string cursor)
{
if (!target.IsValid)
if (!target.IsValidFor(self))
return false;
var location = target.CenterPosition.ToCPos();

View File

@@ -73,7 +73,7 @@ namespace OpenRA.Mods.RA.Move
{
this.getPath = (self, mobile) =>
{
if (!target.IsValid)
if (!target.IsValidFor(self))
return NoPath;
return self.World.WorldActor.Trait<PathFinder>().FindUnitPathToRange(