Description
3.11.1 [0a36] : Tower Rift scientist leader death event is incorrectly triggered by any leader death
Game Version
3.11.1 [0a36]
What version do you use?
GoG
What expansions do you have installed?
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
astral_rift.695 is triggered by on_leader_death and is supposed to be triggered only when the tower rift scientist leader dies...except that it incorrectly checks for a country flag instead of leader flag.
Instead of checking for has_country_flag = recruited_tower_rift_leader it should instead check for FROM = { has_leader_flag = tower_rift_leader }, FROM being the leader that has died.
The effect is also written weirdly.
every_owned_leader is unnecessary here and may not even work if the leader is dead. Just do it like this :
The result is that currently, ANY leader death will trigger the tower rift scientist leader death event, instead of the actual leader's death.
Steps to reproduce the issue.
Upload Attachment
File(s) attached
3.11.1 [0a36] : Tower Rift scientist leader death event is incorrectly triggered by any leader death
Game Version
3.11.1 [0a36]
What version do you use?
GoG
What expansions do you have installed?
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
astral_rift.695 is triggered by on_leader_death and is supposed to be triggered only when the tower rift scientist leader dies...except that it incorrectly checks for a country flag instead of leader flag.
Instead of checking for has_country_flag = recruited_tower_rift_leader it should instead check for FROM = { has_leader_flag = tower_rift_leader }, FROM being the leader that has died.
The effect is also written weirdly.
Code:
every_owned_leader = {
limit = { has_leader_flag = tower_rift_leader }
root = {
remove_country_flag = recruited_tower_rift_leader
country_event = {
id = astral_rift.696
scopes = { from = prev }
}
}
}
every_owned_leader is unnecessary here and may not even work if the leader is dead. Just do it like this :
Code:
remove_country_flag = recruited_tower_rift_leader
country_event = {
id = astral_rift.696
scopes = { from = prev }
The result is that currently, ANY leader death will trigger the tower rift scientist leader death event, instead of the actual leader's death.
Steps to reproduce the issue.
Upload Attachment
File(s) attached