﻿on_title_gain = {
	on_actions = {
		eoh_on_title_gain
	}
}
eoh_on_title_gain = {
	effect = {
		if = {
			limit = {
				scope:title = {
					this = title:e_latin_empire
				}
				title:e_outremer.holder ?= root
			}
			title:e_outremer = {
				update_dynamic_coa = yes
			}
		}
	}
}

on_title_lost = {
	on_actions = {
		eoh_on_title_lost
	}
}
eoh_on_title_lost = {
	effect = {
		if = {
			limit = {
				scope:title = {
					this = title:e_latin_empire
				}
				title:e_outremer.holder ?= root
			}
			title:e_outremer = {
				update_dynamic_coa = yes
			}
		}
	}
}

on_explicit_claim_gain = {
	on_actions = {
		eoh_on_explicit_claim_gain
	}
}
eoh_on_explicit_claim_gain = {
	effect = {
		if = {
			limit = {
				scope:title = {
					this = title:e_latin_empire
				}
				title:e_outremer.holder ?= root
			}
			title:e_outremer = {
				update_dynamic_coa = yes
			}
		}
	}
}

on_explicit_claim_lost = {
	on_actions = {
		eoh_on_explicit_claim_lost
	}
}
eoh_on_explicit_claim_lost = {
	effect = {
		if = {
			limit = {
				scope:title = {
					this = title:e_latin_empire
				}
				title:e_outremer.holder ?= root
			}
			title:e_outremer = {
				update_dynamic_coa = yes
			}
		}
	}
}
