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

fix to missile trainer be 132nd
This commit is contained in:
Sven Van de Velde 2017-01-07 14:15:48 +01:00 committed by GitHub
commit 8c45629dde
2 changed files with 8 additions and 0 deletions

View File

@ -502,6 +502,10 @@ function MISSILETRAINER:_EventShot( Event )
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 ) SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
if ( TrainerWeapon:getTypeName() == "9M311" ) then
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
else
end
end end
end end

View File

@ -21673,6 +21673,10 @@ function MISSILETRAINER:_EventShot( Event )
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 ) SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
if ( TrainerWeapon:getTypeName() == "9M311" ) then
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
else
end
end end
end end