#textdomain wesnoth-units
[unit_type]
    id=Merman Spearman
    name= _ "Merman Spearman"
    race=merman
    image="units/merfolk/spearman.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    profile=portraits/merfolk/spearman.png
    hitpoints=40
    movement_type=swimmer
    movement=6
    experience=85
    level=2
    alignment=lawful
    advances_to=Merman Javelineer
    cost=27
    usage=mixed fighter
    description= _ "Archery is little favored by the mermen, for whom use of javelins serves a similar function. Though thrown javelins are of little use under the water, they are extremely effective at the surface, where their weight allows them to plunge several feet below the water while retaining enough momentum to wreak damage. They are also useful in melee, even deep under the surface, which is something that certainly cannot be said of arrows."
    die_sound=mermen-die.ogg
    {DEFENSE_ANIM "units/merfolk/spearman.png" "units/merfolk/spearman.png" mermen-hit.wav }
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/merfolk/transparent/spearman.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/merfolk/transparent/spearman.png"
    [/portrait]
    [attack]
        name=spear
        description=_"spear"
        type=pierce
        range=melee
        damage=6
        number=2
    [/attack]
    [attack]
        name=spear
        description=_"spear"
        type=pierce
        range=ranged
        damage=6
        number=4
    [/attack]
    [attack_anim]
        [filter_attack]
            name=spear
            range=ranged
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        start_time=-200
        [frame]
            image="units/merfolk/spearman.png:100"
            sound={SOUND_LIST:THROW}
        [/frame]
        {SOUND:HIT spear.ogg -100}
        [frame]
            image="units/merfolk/spearman.png:150"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=spear
            range=melee
        [/filter_attack]
        start_time=-200
        [frame]
            image="units/merfolk/spearman.png:50"
        [/frame]
        {SOUND:HIT_AND_MISS spear.ogg spear-miss.ogg -150}
        [frame]
            image="units/merfolk/spearman.png:250"
        [/frame]
        [frame]
            image="units/merfolk/spearman.png:50"
        [/frame]
    [/attack_anim]
[/unit_type]
