"On landing" actions no longer triggered when player lands away from an airfield

This commit is contained in:
Ambroise Garel
2025-09-18 22:03:11 +02:00
parent 92a00160ef
commit 591ec6e10a
6 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ do
if not event.initiator:getPlayerName() then return end
if TUM.mission.getStatus() == TUM.mission.status.NONE then return end -- Mission not in progress, no wingman needed
TUM.wingmen.create()
elseif event.id == world.event.S_EVENT_LAND then -- Remove wingmen on player landing
elseif event.id == world.event.S_EVENT_LAND and event.place then -- Remove wingmen on player landing
if not event.initiator:getPlayerName() then return end
TUM.wingmen.removeAll()
elseif event.id == world.event.S_EVENT_PLAYER_ENTER_UNIT then -- Remove wingmen when player takes control of a new unit