Merge pull request #244 from FlightControl-Master/Bugfix-132nd

Fix to Missile Trainer
This commit is contained in:
Sven Van de Velde 2017-02-16 18:31:42 +01:00 committed by GitHub
commit bc863c157e
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, {}, 1 )
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
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, {}, 1 )
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
else else
end end
end end