[R&F] Leader ability modifier not work with city requirement

TzeLust

Chieftain
Joined
Apr 6, 2022
Messages
3
I want to make a leader ability that will remove loyalty per turn for cities that match the requirement. I'm assigning a requirement that has the class "city" marked. Nothing works. I assign a requirement that has the "player" class - everything works. The code:
Code:
<Modifiers>
            <ModifierId>TRAIT_KILL_ME_PLEASE</ModifierId>
            <ModifierType>MODIFIER_PLAYER_CITIES_ADJUST_IDENTITY_PER_TURN</ModifierType>
            <SubjectRequirementSetId>SOME_REQ_CITY</SubjectRequirementSetId>
        </Row>
    </Modifiers>
    <ModifierArguments>
        <Row>
            <ModifierId>TRAIT_KILL_ME_PLEASE</ModifierId>
            <Name>Amount</Name>
            <Value>-999</Value>
        </Row>
    </ModifierArguments>
    <RequirementSets>
        <Row>
            <RequirementSetId>SOME_REQ_CITY</RequirementSetId>
            <RequirementSetType>REQUIREMENTSET_TEST_ANY</RequirementSetType>
        </Row>
    </RequirementSets>
    <RequirementSetRequirements>
        <Row>
            <RequirementSetId>SOME_REQ_CITY</RequirementSetId>
            <RequirementId>SOME_REQ_CITY_REQ</RequirementId>
        </Row>
    </RequirementSetRequirements>
    <Requirements>
        <Row>
            <RequirementId>SOME_REQ_CITY_REQ</RequirementId>
            <RequirementType>REQUIREMENT_PLAYER_AT_WAR_WITH_NEIGHBOR</RequirementType>
        </Row>
        <!-- ^This req works^ -->
        <!-- REQUIREMENT_CITY_FOLLOWS_PANTHEON doesen`t work -->
    </Requirements>
 
Top Bottom