Don’t queue rallypoint move if MoveIntoWorld:false. Fixes #5576.
This commit is contained in:
@@ -78,10 +78,12 @@ namespace OpenRA.Mods.RA
|
||||
if (move != null)
|
||||
{
|
||||
if (exitinfo.MoveIntoWorld)
|
||||
{
|
||||
newUnit.QueueActivity(move.MoveIntoWorld(newUnit, exit));
|
||||
|
||||
newUnit.QueueActivity(new AttackMove.AttackMoveActivity(
|
||||
newUnit, move.MoveWithinRange(target, nearEnough)));
|
||||
newUnit.QueueActivity(new AttackMove.AttackMoveActivity(
|
||||
newUnit, move.MoveWithinRange(target, nearEnough)));
|
||||
}
|
||||
}
|
||||
|
||||
newUnit.SetTargetLine(target, Color.Green, false);
|
||||
|
||||
Reference in New Issue
Block a user