Code:
most_participating_attacker = {
gain_settlements_under_title = {
title = PREV
enemy = FROM
}
if = {
limit = {
primary_title = { is_primary_type_title = no } # Mercs, the Pope, Holy Orders, etc
[COLOR="#FF0000"]PREV = { has_holder = no }[/COLOR]
OR = {
NOT = { character = ROOT }
independent = yes
liege = {
tier = EMPEROR
}
}
}
[COLOR="#00FF00"]usurp_title = PREV[/COLOR]
if = {
limit = {
NOT = { culture = PREV }
}
hidden_tooltip = { PREV = { conquest_culture = THIS } }
}
}
}
Actually I think you will find that in the crusade success (this is for all crusade types) cb in 00_cb_types.txt.
That if a
target title is held, it is not usurped. But if the title is not created and held,
then the title is usurped and given to the highest contributor.
Since the losing kingdom in this case still held land after the successful jihad, they retained the kingdom title. If the Holder became unlanded the title would of become destroyed and usurped by the jihad winner.
So this is WAD. Unless that line is not supposed to be there.
EDIT:
As a side note the creation and usurping restrictions do not have any effect on this. Otherwise when an English catholic wins a crusade for Andalusia, they would not get the title, but the title is granted to winner regardless of cultural requirements.