Browse Source

Fix the undefined stars in linker

master
Khaled Nassar 4 years ago
parent
commit
72d607e73a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      strategies/linker.go

+ 1
- 1
strategies/linker.go View File

@@ -48,7 +48,7 @@ func (ls *LinkerStrategy) attack(stars []*models.Star, flights []models.Flight,
// Determine target for this source
for j, t := range stars {
// Only target non-owned or enemy stars
if t.Friendly() || t.OwnedByMe() {
if !t.Unowned() || !t.Enemy() {
continue
}


Loading…
Cancel
Save