Refactor UnitInfluence trait -> world.ActorMap
This commit is contained in:
@@ -66,7 +66,7 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
// Don't drop on any actors
|
||||
if (self.World.WorldActor.Trait<BuildingInfluence>().GetBuildingAt(p) != null) continue;
|
||||
if (self.World.WorldActor.Trait<UnitInfluence>().GetUnitsAt(p).Any()) continue;
|
||||
if (self.World.ActorMap.GetUnitsAt(p).Any()) continue;
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user