#textdomain wesnoth-did

############## DRAGON OPTIONS ##############

#define AMLA_OPTION_DRAGON_MELEE
    [advancement]
        max_times=4
        description=_"Jaw damage +1, Claws damage +2"
        image="attacks/fangs.png"
        id=amla_dragon_melee
        strict_amla=yes
        [effect]
            apply_to=attack
            name=jaw
            increase_damage=1
        [/effect]
        [effect]
            apply_to=attack
            name=claws
            increase_damage=2
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=12%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=14%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=16%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_DRAGON_CARAPACE
    [advancement]
        max_times=2
        description=_"+10% resistance to blade and impact"
        image="attacks/ram.png"
        id=amla_dragon_carapace
        strict_amla=yes
        [effect]
            apply_to=resistance
            [resistance]
                blade=-10
                impact=-10
            [/resistance]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=10%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=12%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=14%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_DRAGON_FLIGHT
    [advancement]
        max_times=2
        description=_"+1 movement"
        image="attacks/slam-drake.png"
        id=amla_dragon_flight
        strict_amla=yes
        [effect]
            apply_to=movement
            increase=1
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=10%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=11%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=12%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_DRAGON_SOUL_EATER1
    [advancement]
        max_times=1
        description=_"Gain the Soul Eater ability"
        image="attacks/wail.png"
        id=amla_dragon_soul_eater1
        strict_amla=yes
        require_amla=amla_dragon_melee
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_SOUL_EATER1}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=30
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_DRAGON_SOUL_EATER2
    [advancement]
        max_times=1
        description=_"Improve the Soul Eater ability"
        image="attacks/wail.png"
        id=amla_dragon_soul_eater2
        strict_amla=yes
        require_amla=amla_dragon_melee,amla_dragon_carapace,amla_dragon_soul_eater1
        [effect]
            apply_to=remove_ability
            [abilities]
                {ABILITY_SOUL_EATER1}
            [/abilities]
        [/effect]
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_SOUL_EATER2}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=45
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_DRAGON_SOUL_EATER3
    [advancement]
        max_times=1
        description=_"Further improve the Soul Eater ability"
        image="attacks/wail.png"
        id=amla_dragon_soul_eater3
        strict_amla=yes
        require_amla=amla_dragon_melee,amla_dragon_melee,amla_dragon_carapace,amla_dragon_flight,amla_dragon_soul_eater2
        [effect]
            apply_to=remove_ability
            [abilities]
                {ABILITY_SOUL_EATER2}
            [/abilities]
        [/effect]
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_SOUL_EATER3}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=60
        [/effect]
    [/advancement]
#enddef

############## MAL KESHAR OPTIONS ##############

#define AMLA_MAL_KESHAR
    {AMLA_OPTION_MELEE_TOUCH}
    {AMLA_OPTION_CHILL_TEMPEST}
    {AMLA_OPTION_SHADOW_WAVE}
    {AMLA_OPTION_MALICE2}
    {AMLA_OPTION_SHADOW_VEIL}
    {AMLA_OPTION_FROST_NOVA}
    {AMLA_OPTION_SPELLBIND}
    {AMLA_OPTION_REND}
    {AMLA_DEFAULT}
#enddef

#define AMLA_OPTION_MELEE_TOUCH
    [advancement]
        max_times=6
        description=_"+1 melee damage"
        image=attacks/touch-undead.png
        id=mal_keshar_amla_melee
        strict_amla=yes
        [effect]
            apply_to=attack
            name=touch
            increase_damage=1
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=16%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=18%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=20%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_CHILL_TEMPEST
    [advancement]
        max_times=3
        description=_"+1 chill tempest damage"
        image=attacks/iceball.png
        id=mal_keshar_amla_chill
        strict_amla=yes
        [effect]
            apply_to=attack
            name=chill tempest
            increase_damage=1
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=16%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=18%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=20%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_SHADOW_WAVE
    [advancement]
        max_times=5
        description=_"+1 shadow wave damage"
        image=attacks/dark-missile.png
        id=mal_keshar_amla_shadow
        strict_amla=yes
        [effect]
            apply_to=attack
            name=shadow wave
            increase_damage=1
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=16%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=18%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=20%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_FROST_NOVA
    [advancement]
        max_times=1
        id=mal_keshar_nova
        strict_amla=yes
        require_amla=mal_keshar_amla_chill,mal_keshar_amla_chill
        exclude_amla=ancient_lich_nova,mal_keshar_spellbind,mal_keshar_rend
        description= _ "Chill tempest gains area of effect damage"
        image=attacks/iceball.png
        [effect]
            apply_to=attack
            name=chill tempest
            [set_specials]
                {WEAPON_SPECIAL_FROST_NOVA}
                mode=append
            [/set_specials]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=30%
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_SPELLBIND
    [advancement]
        max_times=1
        id=mal_keshar_spellbind
        strict_amla=yes
        require_amla=mal_keshar_amla_shadow,mal_keshar_amla_shadow
        exclude_amla=ancient_lich_spellbind,mal_keshar_nova,mal_keshar_rend
        description= _ "Shadow wave reduces incoming fire, cold, and arcane damage"
        image=attacks/dark-missile.png
        [effect]
            apply_to=attack
            name=shadow wave
            [set_specials]
                {WEAPON_SPECIAL_SPELLBIND}
                mode=append
            [/set_specials]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=25%
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_REND
    [advancement]
        max_times=1
        id=mal_keshar_rend
        strict_amla=yes
        require_amla=mal_keshar_amla_melee,mal_keshar_amla_melee
        exclude_amla=ancient_lich_blood,mal_keshar_nova,mal_keshar_spellbind
        description= _ "Drain HP from nearby enemies, but lose HP every turn"
        image=attacks/curse.png
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_SOUL_REND}
            [/abilities]
        [/effect]
        [effect]
            apply_to=attack
            name=touch
            remove_specials=drains
        [/effect]
        [effect]
            apply_to=attack
            name=touch
            [set_specials]
                {WEAPON_SPECIAL_REAP}
                mode=append
            [/set_specials]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=25%
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_MALICE2
    [advancement]
        max_times=1
        description=_"Improve the malice ability"
        image="attacks/wail.png"
        id=mal_keshar_amla_malice2
        strict_amla=yes
        require_amla=mal_keshar_amla_shadow,ancient_lich_malice
        [effect]
            apply_to=remove_ability
            [abilities]
                {ABILITY_MALICE1}
            [/abilities]
        [/effect]
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_MALICE2}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=30%
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_SHADOW_VEIL
    [advancement]
        max_times=1
        description=_"Gain the ability to hide allied units"
        image="attacks/gaze.png"
        id=mal_keshar_amla_shadow_veil
        strict_amla=yes
        require_amla=mal_keshar_amla_shadow,mal_keshar_amla_shadow,mal_keshar_amla_chill
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_SHADOW_VEIL}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=20%
        [/effect]
    [/advancement]
#enddef

############## EIDOLON OPTIONS ##############

#define AMLA_EIDOLON
    {AMLA_OPTION_BANEBLADE}
    {AMLA_OPTION_WAIL}
    {AMLA_OPTION_REAPER}
    {AMLA_OPTION_SORROW1}
    {AMLA_OPTION_SORROW2}
    {AMLA_DEFAULT}
#enddef

#define AMLA_OPTION_BANEBLADE
    [advancement]
        max_times=4
        description=_"+1 melee damage"
        image=attacks/baneblade.png
        id=eidolon_baneblade
        strict_amla=yes
        [effect]
            apply_to=attack
            name=baneblade
            increase_damage=1
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=16%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=18%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=20%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_WAIL
    [advancement]
        max_times=5
        description=_"+1 ranged damage"
        image=attacks/wail.png
        id=eidolon_wail
        strict_amla=yes
        [effect]
            apply_to=attack
            name=wail
            increase_damage=1
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=16%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=18%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=20%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_REAPER
    [advancement]
        max_times=1
        description=_"Improved baneblade drain"
        image="attacks/scythe.png"
        id=eidolon_reap
        strict_amla=yes
        require_amla=eidolon_baneblade,eidolon_baneblade
        [effect]
            apply_to=attack
            name=baneblade
            remove_specials=drains
        [/effect]
        [effect]
            apply_to=attack
            name=baneblade
            [set_specials]
                {WEAPON_SPECIAL_REAP}
                mode=append
            [/set_specials]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=25%
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_SORROW1
    [advancement]
        max_times=1
        description=_"Reduces nearby enemy units’ damage"
        image="attacks/curse.png"
        id=eidolon_sorrow1
        strict_amla=yes
        require_amla=eidolon_wail
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_SORROW1}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=30%
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_SORROW2
    [advancement]
        max_times=1
        description=_"Improves the sorrow ability"
        image="attacks/curse.png"
        id=eidolon_sorrow2
        strict_amla=yes
        require_amla=eidolon_wail,eidolon_wail,eidolon_sorrow1
        [effect]
            apply_to=remove_ability
            [abilities]
                {ABILITY_SORROW1}
            [/abilities]
        [/effect]
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_SORROW2}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=30%
        [/effect]
    [/advancement]
#enddef

############## MALIN KESHAR OPTIONS ##############

#define AMLA_MALIN_KESHAR
    {AMLA_OPTION_MELEE_SWORD}
    {AMLA_OPTION_MALIN_RANGED}
    {AMLA_OPTION_VITALIZE}
    {AMLA_OPTION_CORPSE_LAUNCHER}
    {AMLA_OPTION_CORPSE_MASTER}
    {AMLA_OPTION_ZOMBIE_FRENZY}
    {AMLA_DEFAULT}
#enddef

#define AMLA_OPTION_MELEE_SWORD
    [advancement]
        max_times=4
        description=_"+1 melee damage"
        image=attacks/sword-human-short.png
        id=malin_keshar_amla_melee
        strict_amla=yes
        [effect]
            apply_to=attack
            name=short sword
            increase_damage=1
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=16%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=18%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=20%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_MALIN_RANGED
    [advancement]
        max_times=2
        description=_"+1 ranged damage"
        image=attacks/iceball.png
        id=malin_keshar_amla_ranged
        strict_amla=yes
        [effect]
            apply_to=attack
            range=ranged
            increase_damage=1
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=27%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=30%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=33%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_VITALIZE
    [advancement]
        max_times=1
        id=malin_melee_vitalize_amla
        description= _ "Improves the vitalize special"
        strict_amla=yes
        exclude_amla=malin_melee_vitalize2
        require_amla=malin_melee_vitalize,malin_keshar_amla_melee
        image=attacks/baneblade.png
        [effect]
            apply_to=attack
            range=melee
            remove_specials=did_vitalize1
        [/effect]
        [effect]
            apply_to=attack
            range=melee
            [set_specials]
                {WEAPON_SPECIAL_VITALIZE2}
                mode=append
            [/set_specials]
        [/effect]
        [effect]
            apply_to=max_experience
            increase=50
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_CORPSE_LAUNCHER
    [advancement]
        max_times=1
        description=_"Gains the corpse launch attack"
        image="attacks/dragonstaff.png"
        id=malin_corpse_launch_amla
        strict_amla=yes
        require_amla=malin_melee_plague
        exclude_amla=malin_corpse_launcher
        [effect]
            apply_to=new_attack
            name=corpse launch
            description= _"corpse launch"
            type=impact
            range=ranged
            damage=0
            number=1
            [specials]
                {WEAPON_SPECIAL_CORPSE_LAUNCHER}
                {WEAPON_SPECIAL_MAGICAL}
            [/specials]
            icon=attacks/dragonstaff.png
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=40
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_CORPSE_MASTER
    [advancement]
        max_times=1
        description=_"Gains the corpse master ability"
        image="attacks/touch-zombie.png"
        id=malin_corpse_master_amla
        strict_amla=yes
        require_amla=malin_melee_plague
        exclude_amla=malin_corpse_master
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_CORPSE_MASTER}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=40
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_ZOMBIE_FRENZY
    [advancement]
        max_times=1
        description=_"Gains the zombie frenzy ability"
        image="attacks/frenzy.png"
        id=malin_zombie_frenzy_amla
        strict_amla=yes
        require_amla=malin_melee_plague,malin_keshar_amla_melee
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_ZOMBIE_FRENZY}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=60
        [/effect]
    [/advancement]
#enddef

############## DROGAN GHOUL OPTIONS ##############

#define AMLA_OPTION_GHOUL_MELEE
    [advancement]
        max_times=5
        description=_"+1 melee damage"
        image=attacks/fangs.png
        id=ghast_melee
        strict_amla=yes
        [effect]
            apply_to=attack
            name=bite
            increase_damage=1
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=8%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=9%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=10%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_GHOUL_RESIST
    [advancement]
        max_times=4
        description=_"+5% resistance to blade and impact"
        image=icons/potion_red_small.png
        id=ghast_resist
        strict_amla=yes
        [effect]
            apply_to=resistance
            [resistance]
                blade=-5
                impact=-5
            [/resistance]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
#ifdef EASY
        [effect]
            apply_to=max_experience
            increase=6%
        [/effect]
#endif
#ifdef NORMAL
        [effect]
            apply_to=max_experience
            increase=7%
        [/effect]
#endif
#ifdef HARD
        [effect]
            apply_to=max_experience
            increase=8%
        [/effect]
#endif
    [/advancement]
#enddef

#define AMLA_OPTION_CANNIBALIZE1
    [advancement]
        max_times=1
        description=_"Gains the cannibalize ability"
        image="attacks/staff-necromantic.png"
        id=ghast_cannibalize1
        strict_amla=yes
        require_amla=ghast_melee
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_CANNIBALIZE1}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=30
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_CANNIBALIZE2
    [advancement]
        max_times=1
        description=_"Improves the cannibalize ability"
        image="attacks/staff-necromantic.png"
        id=ghast_cannibalize2
        strict_amla=yes
        require_amla=ghast_melee,ghast_melee,ghast_resist,ghast_cannibalize1
        [effect]
            apply_to=remove_ability
            [abilities]
                {ABILITY_CANNIBALIZE1}
            [/abilities]
        [/effect]
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_CANNIBALIZE2}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=60
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_DEATH_CLOUD
    [advancement]
        max_times=1
        description=_"Gains the death cloud ability"
        image="attacks/wail.png"
        id=ghast_death_cloud
        strict_amla=yes
        require_amla=ghast_melee,ghast_resist,ghast_resist,ghast_resist,ghast_cannibalize1
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_DEATH_CLOUD}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=50
        [/effect]
    [/advancement]
#enddef

############## NECRON GHOUL ABILITIES ##############

#define AMLA_OPTION_MASOCHISM1
    [advancement]
        max_times=1
        id=necron_masochism1
        strict_amla=yes
        require_amla=ghast_resist,ghast_resist
        description= _ "Gain increasing damage as hitpoints are reduced"
        image=attacks/curse.png
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_MASOCHISM1}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            increase_total=15
            increase=15
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=25%
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_MASOCHISM2
    [advancement]
        max_times=1
        id=necron_masochism2
        strict_amla=yes
        require_amla=necron_masochism1
        description= _ "Gain increasing damage as hitpoints are reduced"
        image=attacks/curse.png
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_MASOCHISM2}
            [/abilities]
        [/effect]
        [effect]
            apply_to=hitpoints
            increase_total=20
            increase=20
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=25%
        [/effect]
    [/advancement]
#enddef

#define AMLA_OPTION_GHOULFICATION
    [advancement]
        max_times=1
        id=necron_ghoulfication
        strict_amla=yes
        require_amla=ghast_melee,ghast_melee
        description= _ "Gains the ability to turn enemies into ghouls"
        image=attacks/fangs.png
        [effect]
            apply_to=attack
            name=bite
            increase_damage=1
            [set_specials]
                {WEAPON_SPECIAL_GHOULFICATION}
                mode=append
            [/set_specials]
        [/effect]
        [effect]
            apply_to=max_experience
            increase=40%
        [/effect]
    [/advancement]
#enddef
