#textdomain wesnoth-low
#define INVISIBILITY_POTION AFFIX DESCRIPTION
    [object]
        id=invisibility_potion_{AFFIX}
        description={DESCRIPTION}
        duration=level
        [filter]
            id={AFFIX}
        [/filter]
        [effect]
            apply_to=new_ability
            [abilities]
                [hides]
                    id=invisible
                    name= _ "invisible"
                    name_inactive= _ "invisible"
                    description= _ "invisible:
Enemy units cannot see this unit, except for wolf-based units who can smell it if close enough. Hence except for wolf-based units, enemy units will not initiate an attack on this unit. Defense is at 80 percent for every terrain except water, where it is 70 percent."
                    description_inactive= _ "invisible:
Enemy units cannot see this unit, except for wolf-based units who can smell it if close enough. Hence except for wolf-based units, enemy units will not initiate an attack on this unit. Defense is at 80 percent for every terrain except water, where it is 70 percent."
                    affect_self=yes
                [/hides]
            [/abilities]
        [/effect]
        [effect]
            apply_to=defense
            replace=true
            [defense]
                deep_water=30
                shallow_water=30
                reef=30
                swamp_water=30
                flat=20
                sand=20
                forest=20
                hills=20
                mountains=20
                village=20
                castle=20
                cave=20
                frozen=20
                unwalkable=20
                impassable=20
                fungus=20
            [/defense]
        [/effect]
    [/object]
#enddef

#define ORCISH_GUARD

    [unit]
        type=Goblin Pillager
        id=Odrun
        name=_ "Odrun"
        side=7
        x,y=25,4
        [ai]
            loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
            [vars]
                guard_radius=3
                waypoints=[ loc(25,4) -> loc(14,2), loc(14,2) -> loc(9,12), loc(9,12) -> loc(6,19), loc(6,19) -> loc(25,4) ]
                next_step="loc(25,4)"
            [/vars]
        [/ai]
    [/unit]

    #    [unit]
    #        type=Direwolf Rider
    #        id=Gragul
    #        name=_ "Gragul"
    #        side=7
    #        x,y=16,29
    #        [ai]
    #            loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
    #            [vars]
    #               guard_radius=3
    #               waypoints=[ loc(16,29) -> loc(21,19), loc(21,19) -> loc(27,17), loc(27,17) -> loc(23,6), loc(23,6) -> loc(16,29) ]
    #               next_step="loc(16,29)"
    #            [/vars]
    #        [/ai]
    #    [/unit]

    [unit]
        type=Goblin Pillager
        id=Kardur
        name=_ "Kardur"
        side=7
        x,y=10,20
        [ai]
            loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
            [vars]
                guard_radius=3
                waypoints=[ loc(10,20) -> loc(18,24), loc(18,24) -> loc(21,19), loc(21,19) -> loc(18,11), loc(18,11) -> loc(10,20) ]
                next_step="loc(10,20)"
            [/vars]
        [/ai]
    [/unit]

    #    [unit]
    #        type=Goblin Knight
    #        id=Muhtr
    #        name=_ "Muhtr"
    #        side=7
    #        x,y=13,25
    #        [ai]
    #            loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
    #            [vars]
    #               guard_radius=3
    #               waypoints=[ loc(13,25) -> loc(12,22), loc(12,22) -> loc(6,27), loc(6,27) -> loc(4,20), loc(4,20) -> loc(9,13), loc(9,13) -> loc(19,19), loc(19,19) -> loc(17,25), loc(17,25) -> loc(13,25)]
    #               next_step="loc(13,25)"
    #            [/vars]
    #        [/ai]
    #    [/unit]
    [unit]
        type=Goblin Pillager
        id=Kartrog
        name=_ "Kartrog"
        side=7
        x,y=22,27
        [ai]
            loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
            [vars]
                guard_radius=3
                waypoints=[ loc(22,27) -> loc(27,24), loc(27,24) -> loc(21,16),loc(21,16) -> loc(22,27), loc(22,27) -> loc(6,24), loc(6,24)-> loc(22,27)]
                next_step="loc(22,27)"
            [/vars]
        [/ai]
    [/unit]
    #    [unit]
    #        type=Wolf Rider
    #        id=Griul
    #        name=_ "Griul"
    #        side=7
    #        x,y=12,29
    #        [ai]
    #            loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
    #            [vars]
    #               guard_radius=3
    #               waypoints=[ loc(12,29) -> loc(16,15), loc(16,15) -> loc(25,4), loc(25,4) -> loc(12,29) ]
    #               next_step="loc(12,29)"
    #            [/vars]
    #        [/ai]
    #    [/unit]
    [unit]
        type=Goblin Knight
        id=Sdrul
        name=_ "Sdrul"
        side=7
        x,y=13,19
        [ai]
            loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
            [vars]
                guard_radius=3
                waypoints=[ loc(13,19) -> loc(16,15), loc(16,15) -> loc(25,4), loc(25,4) -> loc(13,19) ]
                next_step="loc(13,19)"
            [/vars]
        [/ai]
    [/unit]

    #   [unit]
    #       type=Wolf Rider
    #       id=Etruw
    #       name=_ "Etruw"
    #       side=7
    #       x,y=31,15
    #       [ai]
    #           loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
    #           [vars]
    #              guard_radius=3
    #              waypoints=[ loc(31,15) -> loc(16,15), loc(16,15) -> loc(31,15) ]
    #              next_step="loc(31,15)"
    #           [/vars]
    #       [/ai]
    #   [/unit]

    [unit]
        type=Direwolf Rider
        id=Utrub
        name=_ "Utrub"
        side=7
        x,y=29,24
        [ai]
            loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
            [vars]
                guard_radius=3
                waypoints=[ loc(29,24) -> loc(16,15), loc(16,15) -> loc(29,24) ]
                next_step="loc(29,24)"
            [/vars]
        [/ai]
    [/unit]

    #    [unit]
    #        type=Goblin Pillager
    #        id=Bihlas
    #        name=_ "Bihlas"
    #        side=7
    #        x,y=5,21
    #        [ai]
    #            loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
    #            [vars]
    #               guard_radius=3
    #               waypoints=[ loc(5,21) -> loc(16,15), loc(16,15) -> loc(5,21) ]
    #               next_step="loc(5,21)"
    #            [/vars]
    #        [/ai]
    #    [/unit]

    [unit]
        type=Goblin Knight
        id=Uhmit
        name=_ "Uhmit"
        side=7
        x,y=17,8
        [ai]
            loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
            [vars]
                guard_radius=3
                waypoints=[ loc(25,4) -> loc(16,15), loc(16,15) -> loc(25,4) ]
                next_step="loc(17,8)"
            [/vars]
        [/ai]
    [/unit]

    #    [unit]
    #        type=Direwolf Rider
    #        id=Mrat
    #        name=_ "Mrat"
    #        side=7
    #        x,y=14,15
    #        [ai]
    #            loop_formula="{campaigns/Legend_of_Wesmere/ai/patrol.fai}"
    #            [vars]
    #               guard_radius=3
    #               waypoints=[ loc(14,15) -> loc(19,12), loc(19,12) -> loc(31,16), loc(31,16) -> loc(14,15) ]
    #               next_step="loc(14,15)"
    #            [/vars]
    #        [/ai]
    #    [/unit]

    #### end of wolves ####

    [unit]
        type=Orcish Grunt
        id=Grut
        name=_ "Grut"
        side=7
        x,y=26,17
    [/unit]

    [unit]
        type=Orcish Grunt
        id=Krolru
        name=_ "Krolru"
        side=7
        x,y=10,20
    [/unit]

    [unit]
        type=Orcish Warrior
        id=Kryl
        name=_ "Kryl"
        side=7
        x,y=25,12
    [/unit]

    [unit]
        type=Orcish Crossbowman
        id=Erdug
        name=_ "Erdug"
        side=7
        x,y=16,20
    [/unit]

    [unit]
        type=Orcish Warrior
        id=Urdol
        name=_ "Urdol"
        side=7
        x,y=24,17
    [/unit]

    [unit]
        type=Orcish Warrior
        id=Tan-Drur
        name=_ "Tan-Drur"
        side=7
        x,y=20,17
    [/unit]

    [unit]
        type=Orcish Crossbowman
        id=Brim
        name=_ "Brim"
        side=7
        x,y=21,23
    [/unit]

    [unit]
        type=Orcish Grunt
        id=Krud
        name=_ "Krud"
        side=7
        x,y=23,8
    [/unit]

    [unit]
        type=Orcish Warrior
        id=Krulr
        name=_ "Krulr"
        side=7
        x,y=22,11
    [/unit]

    [unit]
        type=Orcish Warrior
        id=Draglar
        name=_ "Draglar"
        side=7
        x,y=18,14
    [/unit]

    [unit]
        type=Orcish Warrior
        id=Qmrun
        name=_ "Qmrun"
        side=7
        x,y=24,15
    [/unit]

    [unit]
        type=Goblin Impaler
        id=Erdog
        name=_ "Erdog"
        side=7
        x,y=32,7
    [/unit]

    [unit]
        type=Goblin Spearman
        id=Sbrak
        name=_ "Sbrak"
        side=7
        x,y=19,23
    [/unit]

    [unit]
        type=Goblin Spearman
        id=Urdum
        name=_ "Urdum"
        side=7
        x,y=22,27
    [/unit]

    [unit]
        type=Goblin Impaler
        id=Ozdul
        name=_ "Ozdul"
        side=7
        x,y=17,11
    [/unit]

    [unit]
        type=Goblin Impaler
        id=Zuzerd
        name=_ "Zuzerd"
        side=7
        x,y=5,1
    [/unit]
    [unit]
        type=Orcish Archer
        id=Egrok
        name=_ "Egrok"
        side=7
        x,y=29,11
    [/unit]
    [unit]
        type=Orcish Assassin
        id=Urbrus
        name=_ "Urbrus"
        side=7
        x,y=28,16
    [/unit]
    [unit]
        type=Orcish Slayer
        id=Erbru
        name=_ "Erbru"
        side=7
        x,y=32,8
    [/unit]

    [unit]
        type=Orcish Warrior
        id=Muhmr
        name=_ "Muhmr"
        side=7
        x,y=22,16
    [/unit]

    [unit]
        type=Orcish Crossbowman
        id=Cfrul
        name=_ "Cfrul"
        side=7
        x,y=10,16
    [/unit]

    [unit]
        type=Orcish Crossbowman
        id=Irkrul
        name=_ "Irkrul"
        side=7
        x,y=26,6
    [/unit]

    [unit]
        type=Orcish Grunt
        id=Cebrun
        name=_ "Cebrun"
        side=7
        x,y=3,19
    [/unit]

    [unit]
        type=Orcish Grunt
        id=Krundrum
        name=_ "Krundrum"
        side=7
        x,y=11,5
    [/unit]

    [unit]
        type=Orcish Grunt
        id=Arrkud
        name=_ "Arrkud"
        side=7
        x,y=13,23
    [/unit]

    [unit]
        type=Orcish Grunt
        id=Gulmod
        name=_ "Gulmod"
        side=7
        x,y=11,11
    [/unit]

#enddef
