﻿# Code on-action: character changes faith. Not called when a character gets a faith on birth, creation, and similar
# Root is the character
# scope:old_faith is the faith they used to have
on_character_faith_change = {
	 on_actions = {
        kCAFG_on_character_faith_change
    }
}

# Code on-action: character changes faith. Not called when a character gets a faith on birth, creation, and similar
# Root is the character
# scope:old_faith is the faith they used to have
kCAFG_on_character_faith_change = {
    effect = {
        # Update target faith tensions
        if = {
            limit = { 
                is_landed = yes
				highest_held_title_tier >= tier_county
            }
            every_directly_owned_province = { E_kCAFG_update_province_target_faith_tension = yes }
        }
    }
}