Scripted Effect
adopt_compatible_heir_religion_law
Heir ReligionLawif
Any ReligionPolicyif
Same ReligionPolicyif
Same Religious GroupPolicyifDefinitionin_game/common/scripted_effects/country_effects.txt:2524
2525$country$ = {
2525save_temporary_scope_as = temp_actor
}
2526if = {
2527limit = {
2528exists = scope:temp_actor
2529OR = {
2531law_policy(law:heir_religion_law) = {
2531NOT = {
2531is_locked_for = prev
}
}
}
}
2534if = {
2535limit = {
2536religion = scope:temp_actor.religion
}
}
2541else_if = {
2542limit = {
2543religion.group = scope:temp_actor.religion.group
}
}
2548else_if = {
}
}
2555else = {
2556custom_tooltip = negotiate_succession_law_et Heir Religion Law can not be applied to Recipient
}