mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-04-29 15:55:23 +00:00
oops
This commit is contained in:
parent
acb9cae3fc
commit
e32e67a00d
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ class HackCaptureActor extends Actor {
|
||||||
&& base._2.GUID != building.GUID)
|
&& base._2.GUID != building.GUID)
|
||||||
val zoneTowers = building.Zone.Buildings.filter(tower =>
|
val zoneTowers = building.Zone.Buildings.filter(tower =>
|
||||||
tower._2.BuildingType == StructureType.Tower && tower._2.Faction != hackedByFaction)
|
tower._2.BuildingType == StructureType.Tower && tower._2.Faction != hackedByFaction)
|
||||||
// All major facilities in zone are now owned by the hacking faction. Capture all towers in the zone
|
// All major facilities in zone are now owned by the hacking faction. Capture all remaining towers in the zone
|
||||||
// Base that was just hacked is not counted (hence the size - 1) because it wasn't always in ownedBases (async?)
|
// Base that was just hacked is not counted (hence the size - 1) because it wasn't always in ownedBases (async?)
|
||||||
if (zoneBases.size - 1 == ownedBases.size && zoneTowers.nonEmpty)
|
if (zoneBases.size - 1 == ownedBases.size && zoneTowers.nonEmpty)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue