Fix to Missile Trainer

This commit is contained in:
entropySG 2017-02-16 10:58:35 +01:00
parent 748e5cc8f8
commit 5cae3a9600
2 changed files with 4 additions and 6 deletions

View File

@ -501,9 +501,8 @@ function MISSILETRAINER:_EventShot( Event )
end end
else else
-- TODO: some weapons don't know the target unit... Need to develop a workaround for this. -- TODO: some weapons don't know the target unit... Need to develop a workaround for this.
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
if ( TrainerWeapon:getTypeName() == "9M311" ) then if ( TrainerWeapon:getTypeName() == "9M311" ) then
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 ) SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 1 )
else else
end end
end end

View File

@ -22292,9 +22292,8 @@ function MISSILETRAINER:_EventShot( Event )
end end
else else
-- TODO: some weapons don't know the target unit... Need to develop a workaround for this. -- TODO: some weapons don't know the target unit... Need to develop a workaround for this.
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
if ( TrainerWeapon:getTypeName() == "9M311" ) then if ( TrainerWeapon:getTypeName() == "9M311" ) then
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 ) SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 1 )
else else
end end
end end