#textdomain wesnoth-did
[unit_type]
    id=Apprentice Mage
    name=_ "Apprentice Mage"
    race=human
    gender=male
    image="units/apprentice-mage.png"
    hitpoints=38
    movement_type=smallfoot
    movement=6
    experience=60
    level=1
    alignment=neutral
    advances_to=Apprentice Necromancer
    cost=15
    usage=mixed fighter
    description=_ "Trained in swordsmanship as a boy and the magical arts as a young man, Malin Keshar is talented at both but an expert in neither. Although not as powerful as other fighters in direct combat, Malin’s sharp wit often allows him to outsmart his foes without putting himself in much danger."
    {DEFENSE_ANIM "units/apprentice-mage-defend.png" "units/apprentice-mage-sword.png" {SOUND_LIST:HUMAN_HIT} }
    die_sound={SOUND_LIST:HUMAN_DIE}
    [attack]
        name=short sword
        #textdomain wesnoth-units
        description=_ "short sword"
        #textdomain wesnoth-did
        icon=attacks/sword-human-short.png
        type=blade
        range=melee
        damage=4
        number=3
    [/attack]
    [attack]
        name=magic blast
        description=_ "magic blast"
        icon="attacks/mud-glob.png" # dark missile is next level up
        type=impact
        range=ranged
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=6
        number=2
    [/attack]
    [attack_anim]
        [filter_attack]
            name=magic blast
        [/filter_attack]

        start_time=-350
        missile_start_time=-100
        halo_start_time=-250

        [missile_frame]
            duration=200
            image="projectiles/darkmissile-n.png"
            image_diagonal="projectiles/darkmissile-ne.png"
        [/missile_frame]

        [frame]
            image="units/apprentice-mage-magic-[1~2].png:[75,300]"
        [/frame]

        [halo_frame]
            halo="halo/undead/dark-magic-[1~6].png~O(35%):50"
            halo_y=10
            halo_x=5
            auto_vflip=no
        [/halo_frame]

        {SOUND:HIT_AND_MISS magic-dark.ogg magic-dark-miss.ogg -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=short sword
        [/filter_attack]

        start_time=-175

        [frame]
            image="units/apprentice-mage-sword.png:25"
        [/frame]
        [frame]
            image="units/apprentice-mage-sword-[1~3].png:[75,150,75]"
        [/frame]
        [frame]
            image="units/apprentice-mage.png:50"
        [/frame]

        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
    [/attack_anim]
    [recruiting_anim]
        [filter_second]
            race=undead
        [/filter_second]

        start_time=-375
        sound_start_time=-40

        [frame]
            image="units/apprentice-mage-magic-1.png:75"
        [/frame]
        [frame]
            image="units/apprentice-mage-magic-2.png"
            halo=halo/undead/dark-magic-[1~6].png:50
            halo_x,halo_y=12,-6
        [/frame]
        [frame]
            image="units/apprentice-mage-magic-2.png:50"
        [/frame]
        [frame]
            image="units/apprentice-mage.png:10"
        [/frame]

        [sound_frame]
            sound=magic-dark.ogg
        [/sound_frame]
    [/recruiting_anim]
[/unit_type]
