I suspect that your problem is that at the moment when the last player dies, the mission automatically ends. This will always happen before the trigger fires, since triggers only check conditions every half a second or so, rather than at the exact moment the state changes. I can't promise that this is the issue, but that is what it sounds like to me.