I think I still have an event for this...
/Yup, in bugfixes.txt.
Code:
character_event = { # Bugfix - Remove trait from adult fosterling & return home
id = 23250
picture = "event_youngsters"
trigger = {
condition = { type = age value = 17 }
condition = { type = trait value = fosterling }
}
mean_time_to_happen = {
months = 1
}
immidiate = { # Remove it!
effect = { type = remove_trait value = fosterling }
effect = { type = courtier_defect value = father }
}
}
Change
condition = { type = age value = 17 } to
condition = { type = age value = 16 } if you think this bug still hits you -- maybe also change the MTTH to a few days instead of one month. Before it (appeared to be/) was fixed in the betas, I had it as such.
Note that the above was only written for, and should only fire for, the original bug -- where some fosterlings never got their status cleared. It won't work for cases where the fosterling status was cleared by other ways and s/he still ended up in the wrong court.
My best thought on how to prevent that is to set the age condition to 15, and the MTTH to something like 6 months -- this will hopefully force most fosterlings to return home just before the engine fires for them, as this appears to sometimes cause an unwanted effect.