let the cruiser jump in earlier and nearer to friendly harbor

fixes #3126
This commit is contained in:
Matthias Mailänder
2013-06-17 21:50:05 +02:00
parent 734f12bbc6
commit 659600db23
2 changed files with 4 additions and 4 deletions

View File

@@ -44,12 +44,12 @@ namespace OpenRA.Mods.RA
Game.MoveViewport(loc); Game.MoveViewport(loc);
if (ticks == 250) if (ticks == 50)
{ {
Scripting.RASpecialPowers.Chronoshift(self.World, new List<Pair<Actor, CPos>>() Scripting.RASpecialPowers.Chronoshift(self.World, new List<Pair<Actor, CPos>>()
{ {
Pair.New(Actors["ca1"], new CPos(90, 70)), Pair.New(Actors["ca1"], new CPos(96, 70)),
Pair.New(Actors["ca2"], new CPos(92, 71)) Pair.New(Actors["ca2"], new CPos(98, 72))
}, Actors["pdox"], -1, false); }, Actors["pdox"], -1, false);
} }

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Scripting
var targetCell = kv.Second; var targetCell = kv.Second;
var cs = target.Trait<Chronoshiftable>(); var cs = target.Trait<Chronoshiftable>();
if (chronosphere.Owner.Shroud.IsExplored(targetCell) && cs.CanChronoshiftTo(target, targetCell)) if (chronosphere.Owner.Shroud.IsExplored(targetCell) && cs.CanChronoshiftTo(target, targetCell))
cs.Teleport(target, targetCell, duration, killCargo,chronosphere); cs.Teleport(target, targetCell, duration, killCargo, chronosphere);
} }
} }
} }