With filtering. The [advancement] tag accepts a [filter] tag.
This would not offer the advancement option in the advancement dialogue. But if the advancement option would still be useful, and you just want to avoid that the ability is given twice, one can filter at other places instead. Below two examples, one for the heals ability, and one with a weapon special instead.
Code:
[advancement] [filter] [not] ability=healing # this will exclude units which have the mainline ability to heal +4 and +8 # ability_type=heals would exclude any healing ability and also curing [/not]
Code:
[effect] apply_to=new_ability [filter] [not] ability=healing [/not] [/filter] [abilities] {ABILITY_HEALS} [/abilities][/effect][effect] apply_to=attack range=melee # No filter tag here. If one is used, it checks if the unit has such an attack. # Without filter tag it checks if this attack passes the filter. [not] special_id=firststrike [/not] [set_specials] mode=append {WEAPON_SPECIAL_FIRSTSTRIKE} [/set_specials][/effect]
Statistics: Posted by Shiki — Yesterday, 9:04 pm