I have a lot of ability working but still I can't manage to have a building let say the Military academy give me an ability to the unit build in the city where the academy is present.
My modifier code looks like this:
<BuildingModifiers>
<Row>
<BuildingType>BUILDING_MILITARY_ACADEMY</BuildingType>
<ModifierId>GRANT_WINTER_ABILITY_MOVE</ModifierId>
</Row>
</BuildingModifiers>
<Modifiers>
<Row>
<ModifierId>GRANT_WINTER_ABILITY_MOVE</ModifierId>
<ModifierType>MODIFIER_SINGLE_CITY_GRANT_ABILITY_FOR_TRAINED_UNITS</ModifierType>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>GRANT_WINTER_ABILITY_MOVE</ModifierId>
<Name>AbilityType</Name>
<Value>ABILITY_MOVE_WINTER</Value>
</Row>
</ModifierArguments>
I've tried other ways but none of which actually gives my new build unit the ability...
Thanks for the help !
My modifier code looks like this:
<BuildingModifiers>
<Row>
<BuildingType>BUILDING_MILITARY_ACADEMY</BuildingType>
<ModifierId>GRANT_WINTER_ABILITY_MOVE</ModifierId>
</Row>
</BuildingModifiers>
<Modifiers>
<Row>
<ModifierId>GRANT_WINTER_ABILITY_MOVE</ModifierId>
<ModifierType>MODIFIER_SINGLE_CITY_GRANT_ABILITY_FOR_TRAINED_UNITS</ModifierType>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>GRANT_WINTER_ABILITY_MOVE</ModifierId>
<Name>AbilityType</Name>
<Value>ABILITY_MOVE_WINTER</Value>
</Row>
</ModifierArguments>
I've tried other ways but none of which actually gives my new build unit the ability...
Thanks for the help !