[12422] Implement CONDITION_LAST_WAYPOINT - Thanks to Grz3s for testing

(based on commit [12312] - ee391c1)