mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-06-20 05:29:07 +00:00
Location Fix
This commit is contained in:
parent
77a3c936fd
commit
9400a087e2
1 changed files with 3 additions and 0 deletions
|
@ -250,15 +250,18 @@ function Read-LogEntry {
|
|||
if ($damageType -eq "Bullet" -or $weapon -like "apar_special_ballistic*") {
|
||||
$ship = "Player"
|
||||
$enemyShip = "Player"
|
||||
$global:got_location = "NONE"
|
||||
}
|
||||
If ($ship -match $cleanupPattern){
|
||||
$ship = $matches[1]
|
||||
}
|
||||
if ($ship -notmatch $shipManPattern){
|
||||
$ship = "Player"
|
||||
$global:got_location = "NONE"
|
||||
}
|
||||
If ($enemyShip -notmatch $shipManPattern -and $enemyShip -notlike "Passenger" ) {
|
||||
$enemyShip = "Player"
|
||||
$global:got_location = "NONE"
|
||||
}
|
||||
|
||||
# Repeatedly remove all suffixes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue