Merge pull request #466 from FlightControl-Master/386-ai-designate

fix in illumination
This commit is contained in:
Sven Van de Velde 2017-04-24 20:29:06 +02:00 committed by GitHub
commit 94e092fb2e

View File

@ -902,7 +902,7 @@ do -- DESIGNATE
local RecceGroup = self.RecceSet:FindNearestGroupFromPointVec2(TargetUnit:GetPointVec2())
local RecceUnit = RecceGroup:GetUnit( 1 )
if RecceUnit then
RecceUnit:MessageToGroup( "Illuminating " .. TargetUnit:GetTypeName() .. ".", 5, self.AttackSet )
RecceUnit:MessageToSetGroup( "Illuminating " .. TargetUnit:GetTypeName() .. ".", 5, self.AttackSet )
SCHEDULER:New( self,
function()
if TargetUnit:IsAlive() then