decisions = {

    raise_undead = {

        picture = GFX_evt_darkritual

        desc = raise_undead_desc

        is_high_prio = yes

        potential = {
            ai = no
        }

        allow = {
            check_variable = {
                which = necro_power
                value = 10
            }
        }

        effect = {
            change_variable = {
                which = necro_power
                value = -10
            }
			capital_scope = {
				ROOT = {
					spawn_unit = {
						province = PREV
						owner = ROOT
						disband_on_peace = no
						troops = {
							light_infantry = { 10 }
						}
						
					}
				}
			}

        revoke_allowed = {
            always = no
        }

        ai_will_do = {
            factor = 0
        }
    }
}