#textdomain wesnoth-units
[unit_type]
    id=Dread Bat
    name= _ "Dread Bat"
    race=bats
    image="units/undead/dreadbat-se-3.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=33
    movement_type=smallfly
    [defense]
        village=60
    [/defense]
    [resistance]
        cold=70
    [/resistance]
    movement=9
    experience=150
    level=2
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=34
    usage=scout
    undead_variation=bat
    description= _ "Dread Bats are fast and can drain the blood of those they attack, thereby healing themselves, even to the point where they become stronger than they began the battle. Bloated with blood they have grown to a huge size and can feast on bigger and tougher victims."+{SPECIAL_NOTES}+{SPECIAL_NOTES_DRAIN}
    die_sound=bat-flapping.wav
    [attack]
        name=fangs
        description= _"fangs"
        icon=attacks/fangs-animal.png
        type=blade
        range=melee
        damage=6
        number=4
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [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/dreadbat-se-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/undead/dreadbat-se-4.png"
        [/frame]
        [if]
            hits=hit
            [frame]
                duration=150
                image="units/undead/dreadbat-se-4.png"
                sound={SOUND_LIST:BAT_HIT}
            [/frame]
        [/if]
        [else]
            hits=miss,kill
            [frame]
                duration=150
                image="units/undead/dreadbat-se-4.png"
            [/frame]
        [/else]
        [frame]
            duration=1
            image="units/undead/dreadbat-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/dreadbat-ne-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/undead/dreadbat-ne-4.png"
        [/frame]
        [if]
            hits=hit
            [frame]
                duration=150
                image="units/undead/dreadbat-ne-4.png"
                sound={SOUND_LIST:BAT_HIT}
            [/frame]
        [/if]
        [else]
            hits=miss,kill
            [frame]
                duration=150
                image="units/undead/dreadbat-ne-4.png"
            [/frame]
        [/else]
        [frame]
            duration=1
            image="units/undead/dreadbat-ne-3.png"
        [/frame]
    [/defend]
    [standing_anim]
        layer=60
        direction=s,se,sw
        start_time=0
        [frame]
            duration=50
            image="units/undead/dreadbat-se-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-se-2.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/dreadbat-se-1.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-se-2.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead/dreadbat-se-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-se-4.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/dreadbat-se-5.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-se-4.png"
        [/frame]
    [/standing_anim]
    [standing_anim]
        layer=60
        direction=n,ne,nw
        start_time=0
        [frame]
            duration=50
            image="units/undead/dreadbat-ne-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-ne-2.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/dreadbat-ne-1.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-ne-2.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead/dreadbat-ne-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-ne-4.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/dreadbat-ne-5.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-ne-4.png"
        [/frame]
    [/standing_anim]
    [movement_anim]
        direction=s,se,sw
        start_time=0
        [frame]
            duration=50
            image="units/undead/dreadbat-se-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-se-2.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/dreadbat-se-1.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-se-2.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead/dreadbat-se-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-se-4.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/dreadbat-se-5.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-se-4.png"
        [/frame]
    [/movement_anim]
    [movement_anim]
        direction=n,ne,nw
        start_time=0
        [frame]
            duration=50
            image="units/undead/dreadbat-ne-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-ne-2.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/dreadbat-ne-1.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-ne-2.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead/dreadbat-ne-3.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-ne-4.png"
        [/frame]
        [frame]
            duration=80
            image="units/undead/dreadbat-ne-5.png"
        [/frame]
        [frame]
            duration=60
            image="units/undead/dreadbat-ne-4.png"
        [/frame]
    [/movement_anim]
    [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/dreadbat-se-3.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/dreadbat-se-2.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/dreadbat-se-1.png"
            sound=bat-flapping.wav
        [/frame]
        [frame]
            duration=30
            image="units/undead/dreadbat-se-2.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/dreadbat-se-3.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=70
                image="units/undead/dreadbat-se-4.png"
                sound=bite-small.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=70
                image="units/undead/dreadbat-se-4.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=50
            image="units/undead/dreadbat-se-3.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead/dreadbat-se-2.png"
        [/frame]
        [frame]
            duration=40
            image="units/undead/dreadbat-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/dreadbat-ne-3.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/dreadbat-ne-2.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/dreadbat-ne-1.png"
            sound=bat-flapping.wav
        [/frame]
        [frame]
            duration=30
            image="units/undead/dreadbat-ne-2.png"
        [/frame]
        [frame]
            duration=30
            image="units/undead/dreadbat-ne-3.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=70
                image="units/undead/dreadbat-ne-4.png"
                sound=bite-small.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=70
                image="units/undead/dreadbat-ne-4.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=50
            image="units/undead/dreadbat-ne-3.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead/dreadbat-ne-2.png"
        [/frame]
        [frame]
            duration=40
            image="units/undead/dreadbat-ne-3.png"
        [/frame]
    [/attack_anim]
[/unit_type]
