don't land on other people's AFLDs
This commit is contained in:
@@ -17,7 +17,8 @@ namespace OpenRa.Game.Traits
|
||||
if (mi.Button == MouseButton.Left) return null;
|
||||
if (underCursor == null)
|
||||
return Order.Move(self, xy);
|
||||
if (underCursor.Info == Rules.UnitInfo["AFLD"])
|
||||
if (underCursor.Info == Rules.UnitInfo["AFLD"]
|
||||
&& underCursor.Owner == self.Owner)
|
||||
return Order.DeliverOre(self, underCursor); /* brutal hack */
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user