#textdomain wesnoth-units
[unit_type]
    id=Vampire Bat
    name= _ "Vampire Bat"
    race=bats
    image="units/undead/bat-se-3.png"
    profile="portraits/monsters/bat.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    ellipse="misc/ellipse-nozoc"
    hitpoints=16
    movement_type=smallfly
    movement=8
    experience=22
    level=0
    alignment=chaotic
    advances_to=Blood Bat
    undead_variation=bat
    cost=13
    usage=scout
    description= _ "Vampire bats are flying beasts that feed on the blood of other creatures. While their fangs are not very powerful, the health of victims is drained away along with their blood, and given to the Bats."+{SPECIAL_NOTES}+{SPECIAL_NOTES_DRAIN}
    die_sound=bat-flapping.wav
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/monsters/transparent/bat.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/monsters/transparent/bat.png"
    [/portrait]
    [defense]
        village=60
    [/defense]
    [resistance]
        cold=70
    [/resistance]

    [defend]
        direction=s,sw,se
        [if]
            hits=miss
            offset=0.0~-0.15,-0.15~0.0
        [/if]
        start_time=-126
        [frame]
            duration=1
            image="units/undead/bat-se-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/undead/bat-se-4.png"
        [/frame]
        [if]
            hits=hit
            [frame]
                duration=150
                image="units/undead/bat-se-4.png"
                sound={SOUND_LIST:BAT_HIT}
            [/frame]
        [/if]
        [else]
            hits=miss,kill
            [frame]
                duration=150
                image="units/undead/bat-se-4.png"
            [/frame]
        [/else]
        [frame]
            duration=1
            image="units/undead/bat-se-3.png"
        [/frame]
    [/defend]
    [defend]
        direction=n,nw,ne
        [if]
            hits=miss
            offset=0.0~-0.15,-0.15~0.0
        [/if]
        start_time=-126
        [frame]
            duration=1
            image="units/undead/bat-ne-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/undead/bat-ne-4.png"
        [/frame]
        [if]
            hits=hit
            [frame]
                duration=150
                image="units/undead/bat-ne-4.png"
                sound={SOUND_LIST:BAT_HIT}
            [/frame]
        [/if]
        [else]
            hits=miss,kill
            [frame]
                duration=150
                image="units/undead/bat-ne-4.png"
            [/frame]
        [/else]
        [frame]
            duration=1
            image="units/undead/bat-ne-3.png"
        [/frame]
    [/defend]

    [standing_anim]
        direction=s,se,sw
        start_time=0
        layer=60
        [frame]
            duration=50
            image="units/undead/bat-se-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/bat-se-2.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/bat-se-1.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/bat-se-2.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead/bat-se-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/bat-se-4.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/bat-se-5.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/bat-se-4.png"
        [/frame]
    [/standing_anim]
    [standing_anim]
        layer=60
        direction=n,ne,nw
        start_time=0
        [frame]
            duration=50
            image="units/undead/bat-ne-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/bat-ne-2.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/bat-ne-1.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/bat-ne-2.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead/bat-ne-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/bat-ne-4.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/bat-ne-5.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/bat-ne-4.png"
        [/frame]
    [/standing_anim]

    [attack]
        name=fangs
        description=_"fangs"
        icon=attacks/fangs-animal.png
        type=blade
        range=melee
        damage=4
        number=2
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        direction=s,se,sw
        offset=0.0~0.9:200,0.9~0.0:160
        start_time=-200
        [frame]
            duration=30
            image="units/undead/bat-se-3.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/bat-se-2.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/bat-se-1.png"
            sound=bat-flapping.wav
        [/frame]
        [frame]
            duration=30
            image="units/undead/bat-se-2.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/bat-se-3.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=70
                image="units/undead/bat-se-4.png"
                sound=bite-small.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=70
                image="units/undead/bat-se-4.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=50
            image="units/undead/bat-se-3.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead/bat-se-2.png"
        [/frame]
        [frame]
            duration=40
            image="units/undead/bat-se-3.png"
        [/frame]
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        direction=n,ne,nw
        offset=0.0~0.9:200,0.9~0.0:160
        start_time=-200
        [frame]
            duration=30
            image="units/undead/bat-ne-3.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/bat-ne-2.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/bat-ne-1.png"
            sound=bat-flapping.wav
        [/frame]
        [frame]
            duration=30
            image="units/undead/bat-ne-2.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/bat-ne-3.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=70
                image="units/undead/bat-ne-4.png"
                sound=bite-small.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=70
                image="units/undead/bat-ne-4.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=50
            image="units/undead/bat-ne-3.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead/bat-ne-2.png"
        [/frame]
        [frame]
            duration=40
            image="units/undead/bat-ne-3.png"
        [/frame]
    [/attack_anim]
[/unit_type]
