check shroud against the initiating owner when teleporting

fixes #6999
This commit is contained in:
Oliver Brakmann
2014-11-26 20:58:16 +01:00
committed by Matthias Mailänder
parent 253dfcac29
commit ac1e7a7352
2 changed files with 19 additions and 12 deletions

View File

@@ -74,7 +74,7 @@ namespace OpenRA.Mods.RA
{
var maxDistance = Info.HasDistanceLimit ? Info.MaxDistance : (int?)null;
self.CancelActivity();
self.QueueActivity(new Teleport(null, order.TargetLocation, maxDistance, true, false, Info.ChronoshiftSound));
self.QueueActivity(new Teleport(self, order.TargetLocation, maxDistance, true, false, Info.ChronoshiftSound));
}
}