small changes Legion & Auftrag

This commit is contained in:
Applevangelist
2021-12-09 17:44:44 +01:00
parent 72999cc7b0
commit 72550d6d84
2 changed files with 17 additions and 6 deletions

View File

@@ -4239,10 +4239,16 @@ function AUFTRAG:_TargetFromObject(Object)
self.engageTarget=Object
else
elseif Object then
self.engageTarget=TARGET:New(Object)
end
if self.type == AUFTRAG.Type.ALERT5 then
self.alert5Target = self.engageTarget
end
else
@@ -4372,7 +4378,12 @@ function AUFTRAG:GetTargetCoordinate()
local coord=self.engageTarget:GetCoordinate()
return coord
else
elseif self.alert5Target then
local coord=self.alert5Target:GetCoordinate()
return coord
else
self:E(self.lid.."ERROR: Cannot get target coordinate!")
end