#textdomain wesnoth-ei

# This is a fake unit, used when Mal-Ravanal body-hops

[unit_type]
    id=Dark Shape
    name=""
    race=undead
    image="units/undead-ravanal/dark-shape.png"
    profile=portraits/mal-ravanal-ghost.webp
    hitpoints=1
    movement_type=fly
    movement=1
    experience=1
    level=1
    alignment=neutral
    advances_to=null
    cost=1
    usage=scout
    hide_help=yes
    do_not_list=yes

    {LIGHTNING_ANIMATION_RAVANAL_SELF 1}
    {LIGHTNING_ANIMATION_RAVANAL_SELF 2}
    {LIGHTNING_ANIMATION_RAVANAL_SELF 3}

    [standing_anim]
        start_time=0
        alpha=0.6~1.0:1500,1.0~0.8:900,0.8~1.0:900,1.0~0.6:1500
        [frame]
            image="units/undead-ravanal/dark-shape[1~4,1~4,1~4,1~4].png:300"
        [/frame]
    [/standing_anim]
    [standing_anim]
        start_time=0
        alpha=0.6~1.0:1500,1.0~0.75:900,0.75~1.0:900,1.0~0.6:1500
        [frame]
            image="units/undead-ravanal/dark-shape[1~4,1~4,1~4,1~4].png:300"
        [/frame]
    [/standing_anim]

    [recruit_anim]
        start_time=-500
        alpha=0.0~1.0:1500
        [frame]
            image="units/undead-ravanal/dark-shape-recruit[1~10].png:150"
        [/frame]
    [/recruit_anim]

    [animation]
        apply_to=death
        start_time=0
        missile_start_time=-245
        burst_1_start_time=0
        burst_2_start_time=400
        burst_3_start_time=800
        burst_4_start_time=1200
        burst_5_start_time=1600
        burst_6_start_time=2000
        #         smoke_1_start_time=1800
        #         smoke_2_start_time=2400
        #         smoke_3_start_time=3000
        [frame]
            duration=2000
            image="units/undead/dark_shape.png"
            blend_color=127,0,127
            blend_ratio=0~1
            sound=lich-die.ogg
        [/frame]
        [frame]
            duration=1000
            image="units/undead/dark_shape.png"
            blend_color=255,255,255
            blend_ratio=0~1
            sound=wail-long.wav
        [/frame]
        [frame]
            duration=1000
            image="misc/blank-hex.png~SCALE(144,144)~BLIT(units/undead/dark_shape.png~CS(127,0,127),36,36)~BL([15,10,20,30,40,50,60,70])"
            alpha=1,1~0
            blend_color=0,0,0
            blend_ratio=0~1
            sound=magic-dark-big-miss.wav
        [/frame]

        [burst_1_frame]
            image="projectiles/fireball-impact-[1~16].png:60"
            alpha=0:1,1:960,0:1
            image_mod="B(63)~G(-31)"
            x,y=-15,-10
            auto_vflip=no
        [/burst_1_frame]
        [burst_2_frame]
            image="projectiles/fireball-impact-[1~16].png:60"
            alpha=0:1,1:960,0:1
            image_mod="B(63)~G(-31)"
            x,y=20,-5
            auto_vflip=no
        [/burst_2_frame]
        [burst_3_frame]
            image="projectiles/fireball-impact-[1~16].png:60"
            alpha=0:1,1:960,0:1
            image_mod="B(63)~G(-31)"
            x,y=-5,10
            auto_vflip=no
        [/burst_3_frame]
        [burst_4_frame]
            image="projectiles/fireball-impact-[1~16].png:60"
            alpha=0:1,1:960,0:1
            image_mod="B(63)~G(-31)"
            x,y=-15,-10
            auto_vflip=no
        [/burst_4_frame]
        [burst_5_frame]
            image="projectiles/fireball-impact-[1~16].png:60"
            alpha=0:1,1:960,0:1
            image_mod="B(63)~G(-31)"
            x,y=20,-5
            auto_vflip=no
        [/burst_5_frame]
        [burst_6_frame]
            image="projectiles/fireball-impact-[1~16].png:60"
            alpha=0:1,1:960,0:1
            image_mod="B(63)~G(-31)"
            x,y=-5,10
            auto_vflip=no
        [/burst_6_frame]

        #         [smoke_1_frame]
        #             image="terrain/misc/smoke-A[01~12,01~12,01~12,01~12,01~12,01~12].png~SCALE([72~143],[144~215]):50"
        #             alpha=0~1,1,1,1~0
        #             image_mod="~CS(-31,-255,-31)"
        #             y=0~-200
        #             auto_vflip=no
        #         [/smoke_1_frame]
        #         [smoke_2_frame]
        #             image="terrain/misc/smoke-A[01~12,01~12,01~12,01~12,01~12,01~12].png~SCALE([72~143],[144~215]):50"
        #             alpha=0~1,1,1,1~0
        #             image_mod="~CS(-31,-255,-31)"
        #             y=0~-200
        #             auto_vflip=no
        #         [/smoke_2_frame]
        #         [smoke_3_frame]
        #             image="terrain/misc/smoke-A[01~12,01~12,01~12,01~12,01~12,01~12].png~SCALE([72~143],[144~215]):50"
        #             alpha=0~1,1,1,1~0
        #             image_mod="~CS(-31,-255,-31)"
        #             y=0~-200
        #             auto_vflip=no
        #         [/smoke_3_frame]
    [/animation]
[/unit_type]
