Skip to content

Commit

Permalink
prevent wall/gate usage with staging terminals (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeJeffers committed Nov 20, 2021
1 parent 1188220 commit 288af29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Perpetuum/Zones/PBS/PBSHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,11 @@ public static void CheckWallPlantingAndThrow(IZone zone, Unit[] unitsInZone, Pos
unitsInZone.WithinRange(targetPosition, DistanceConstants.PLANT_MAX_DISTANCE_FROM_PBS)
.Any(u =>
{
if (u is PBSDockingBase || u is PBSControlTower)
if (u is ExpiringPBSDockingBase)
{
return false;
}
else if (u is PBSDockingBase || u is PBSControlTower)
{
if (u.Owner == corporationEid)
return true;
Expand Down

0 comments on commit 288af29

Please sign in to comment.