#textdomain wesnoth-tsg
[unit]
    id=Eyestalk
    name= _ "Eyestalk"
    race=monster
    image="units/eyestalk.png"
    hitpoints=68
    movement_type=smallfoot
    [resistance]
        blade=120
        pierce=80
        impact=80
        fire=120
        cold=80
        arcane=80
    [/resistance]
    movement=1
    experience=150
    level=3
    alignment=lawful
    advanceto=null
    {AMLA_DEFAULT}
    cost=30
    usage=mixed fighter
    unit_description= _ "Named 'Eyestalks' for obvious reasons, these plant-like creatures can focus their gaze onto an unsuspecting victim to draw life energy straight out of them to replenish their own. While almost defenseless against melee attacks, its deadly gaze from afar is not to be underestimated."+{SPECIAL_NOTES}+{SPECIAL_NOTES_DRAIN}+{SPECIAL_NOTES_REGENERATES}+{SPECIAL_NOTES_ARCANE}
    {DEFENSE_ANIM "units/eyestalk-attack-1.png" "units/eyestalk.png" wose-hit.ogg }
    [abilities]
        {ABILITY_REGENERATES}
    [/abilities]
    [attack]
        name=smash
        description= _ "smash"
        icon=attacks/crush-wose.png
        type=impact
        range=melee
        damage=8
        number=1
        attack_weight=0.0
    [/attack]
    [attack_anim]
        [attack_filter]
            range=melee
        [/attack_filter]
        [frame]
            begin=-300
            end=-250
            image=units/eyestalk.png
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-250
                end=-150
                image=units/eyestalk-attack-1.png
            [/frame]
            [frame]
                begin=-150
                end=100
                image=units/eyestalk-attack-2.png
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-250
                end=-150
                image=units/eyestalk-attack-1.png
                sound=tail.ogg
            [/frame]
            [frame]
                begin=-150
                end=100
                image=units/eyestalk-attack-2.png
            [/frame]
        [/else]
        [frame]
            begin=100
            end=250
            image=units/eyestalk-attack-1.png
        [/frame]
    [/attack_anim]
    [attack]
        name=gaze
        icon=attacks/gaze.png
        description= _ "gaze"
        type=arcane
        range=ranged
        damage=13
        number=3
        icon=attacks/gaze.png
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack_anim]
        [attack_filter]
            range=ranged
        [/attack_filter]
        [missile_frame]
            begin=0
            end=300
            halo="halo/elven/ice-halo1.png:50,halo/elven/ice-halo2.png:50,halo/elven/ice-halo3.png:50,halo/elven/ice-halo4.png:50,halo/elven/ice-halo5.png:50,halo/elven/ice-halo6.png:50"
            offset=1.0~0.0:300
        [/missile_frame]
        [frame]
            begin=-200
            end=-150
            image=units/eyestalk.png
        [/frame]
        [frame]
            begin=-150
            end=-50
            image=units/eyestalk-attack-1.png
            sound=hiss-die.wav
        [/frame]
        [frame]
            begin=-50
            end=200
            image=units/eyestalk-attack-2.png
        [/frame]
        [frame]
            begin=200
            end=300
            image=units/eyestalk-attack-1.png
        [/frame]
    [/attack_anim]
[/unit]
