﻿on_death = {
	on_actions = {
		on_action_clear_notification
	}
}

on_action_clear_notification = {

	trigger = {
		is_ai = no
	}

	effect = {
		if = {
    		limit = {
    			has_variable = right_clear_notifications
    		}
    		player_heir = {
    			set_variable = right_clear_notifications
    		}
    	}
		if = {
    		limit = {
    			has_variable = hide_notifications_windows
    		}
    		player_heir = {
    			set_variable = hide_notifications_windows
    		}
    	}
		if = {
    		limit = {
    			has_variable = hide_all_notifications
    		}
    		player_heir = {
    			set_variable = hide_all_notifications
    		}
    	}
	}
}