#textdomain wesnoth-units
[unit_type]
    id=Ghast
    name= _ "Ghast"
    race=undead
    {TRAIT_FEARLESS_MUSTHAVE}
    image="units/undead/ghast.png"
    profile="portraits/undead/ghoul.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=65
    movement_type=gruefoot
    movement=5
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=41
    usage=fighter
    description= _ "The ghast is a creature taken from humankind’s most primal nightmares. Unlike their lesser cousins, ghouls and necrophages, ghasts are not patient enough to wait for their victim to die from poison before consuming the body. They attack directly with their enormous mouths, trying to rip the flesh straight from their foes. Once their enemy is defeated, they eat the rest of the body, gaining strength in the process."+{SPECIAL_NOTES}+{SPECIAL_NOTES_POISON}+{SPECIAL_NOTES_FEEDING}
    die_sound=ghoul-hit.wav
    [abilities]
        {ABILITY_FEEDING}
    [/abilities]
    {DEFENSE_ANIM "units/undead/ghast-defend-2.png" "units/undead/ghast-defend-1.png" ghoul-hit.wav }
    [attack]
        name=bite
        description=_ "bite"
        icon=attacks/fangs.png
        type=blade
        range=melee
        damage=10
        number=3
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/undead/transparent/ghoul.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/undead/transparent/ghoul.png"
    [/portrait]
    [attack_anim]
        [filter_attack]
            name=bite
        [/filter_attack]
        start_time=-450
        [frame]
            duration=100
            image="units/undead/ghast-attack-1.png"
        [/frame]
        [if]
            hits=hit
            [frame]
                duration=150
                image="units/undead/ghast-attack-2.png"
                sound="bite.ogg"
            [/frame]
        [/if]
        [else]
            hits=miss,kill
            [frame]
                duration=150
                image="units/undead/ghast-attack-2.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/undead/ghast-attack-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/undead/ghast-attack-4.png"
        [/frame]
        [frame]
            duration=100
            image="units/undead/ghast-attack-5.png"
        [/frame]
        [frame]
            duration=100
            image="units/undead/ghast-attack-6.png"
        [/frame]
    [/attack_anim]
[/unit_type]
