﻿#pagan_conversion_pulse = {
#}

on_character_faith_change = {
	on_actions = {
		gpt_tribal_remain_pagan
	}
}

gpt_tribal_remain_pagan = {
	trigger = {
		is_ai = yes
	}
	effect = {
		random = {
			chance = 50
			if = {
				limit = {
					OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic }
					scope:old_faith = { has_doctrine_parameter = unreformed }
					NOR = {
						AND = { exists = liege liege = { is_ai = no } }
						AND = { exists = top_liege top_liege = { is_ai = no } }
					}
				}
				set_character_faith = scope:old_faith
			}
		}
	}
}



