<?xml version="1.0" ?>
<enemy>
    <behaviour>
        <condition id="getBool">
            <string id="id">upgradebase1</string>
            <string id="value" values="yesno">no</string>
            <sequence>
                <string id="Is blocking">no</string>
                <action id="upgradeBase" />
                <action id="upgradeBase" />
                <action id="setBool">
                    <string id="id">upgradebase1</string>
                    <string id="value" values="yesno">yes</string>
                </action>
            </sequence>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">minutes</string>
            <float id="time">2.20</float>
            <condition id="counter">
                <string id="id">finalunitsranged2</string>
                <int id="count">80</int>
                <sequence>
                    <string id="Is blocking">yes</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianRanged</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">10.00</float>
                    </action>
                    <action id="incrementCounter">
                        <string id="id">finalunitsranged2</string>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianRanged</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianNinja</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                </sequence>
            </condition>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">12.00</float>
                <action id="createUnit">
                    <string id="unitType" values="enemies">AsianInstantkiller</string>
                    <string id="offsetType" values="offsetsFromBase">percentual</string>
                    <float id="offset">0.00</float>
                    <string id="cheat" values="yesno">yes</string>
                    <string id="ignoreCooldown" values="yesno">yes</string>
                </action>
                <condition id="random">
                    <int id="amount">2</int>
                    <action id="setTwoWay">
                        <int id="Index">0</int>
                        <string id="CountFromOwnBase" values="yesno">yes</string>
                        <string id="Type" values="twoWayChoices">switch</string>
                    </action>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">minutes</string>
            <float id="time">1.50</float>
            <condition id="counter">
                <string id="id">finalunitsranged</string>
                <int id="count">80</int>
                <sequence>
                    <string id="Is blocking">yes</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianMelee</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">4.00</float>
                    </action>
                    <action id="incrementCounter">
                        <string id="id">finalunitsranged</string>
                    </action>
                </sequence>
            </condition>
            <condition id="counter">
                <string id="id">finalunitsmelee</string>
                <int id="count">80</int>
                <sequence>
                    <string id="Is blocking">yes</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianMelee</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">9.00</float>
                    </action>
                    <action id="incrementCounter">
                        <string id="id">finalunitsmelee</string>
                    </action>
                </sequence>
            </condition>
            <condition id="counter">
                <string id="id">finalunitsgiants</string>
                <int id="count">1</int>
                <action id="createUnit">
                    <string id="unitType" values="enemies">AsianNinja</string>
                    <string id="offsetType" values="offsetsFromBase">percentual</string>
                    <float id="offset">0.00</float>
                    <string id="cheat" values="yesno">yes</string>
                    <string id="ignoreCooldown" values="yesno">yes</string>
                </action>
                <action id="incrementCounter">
                    <string id="id">finalunitsgiants</string>
                </action>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">25.00</float>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">15.00</float>
                <condition id="unitNear">
                    <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
                    <string id="rangeType" values="offsetsFromBase">percentual</string>
                    <float id="range">35.00</float>
                    <string id="ownUnits" values="yesno">no</string>
                    <action id="useAbility">
                        <string id="abilityType" values="abilities">AsianTerracotta</string>
                        <string id="unitType" values="enemies">ANY</string>
                        <string id="target" values="targets">FrontUnit</string>
                        <string id="ownUnits" values="yesno">no</string>
                        <string id="cheat" values="yesno">no</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                        <string id="ignoreFogOfWar" values="yesno">yes</string>
                    </action>
                </condition>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">AztecRanged</string>
                    <string id="logic" values="unitcountlogic">greater_equals</string>
                    <string id="ownUnits" values="yesno">no</string>
                    <int id="unitCount">10</int>
                    <action id="useAbility">
                        <string id="abilityType" values="abilities">AsianArrowRain</string>
                        <string id="unitType" values="enemies">AztecRanged</string>
                        <string id="target" values="targets">FrontUnit</string>
                        <string id="ownUnits" values="yesno">no</string>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                        <string id="ignoreFogOfWar" values="yesno">yes</string>
                    </action>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">15.00</float>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">30.00</float>
                <action id="createUnit">
                    <string id="unitType" values="enemies">AsianRanged</string>
                    <string id="offsetType" values="offsetsFromBase">percentual</string>
                    <float id="offset">0.00</float>
                    <string id="cheat" values="yesno">yes</string>
                    <string id="ignoreCooldown" values="yesno">yes</string>
                </action>
                <action id="wait">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">5.00</float>
                </action>
                <action id="createUnit">
                    <string id="unitType" values="enemies">AsianRanged</string>
                    <string id="offsetType" values="offsetsFromBase">percentual</string>
                    <float id="offset">0.00</float>
                    <string id="cheat" values="yesno">yes</string>
                    <string id="ignoreCooldown" values="yesno">yes</string>
                </action>
                <action id="wait">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">6.00</float>
                </action>
                <action id="createUnit">
                    <string id="unitType" values="enemies">AsianNinja</string>
                    <string id="offsetType" values="offsetsFromBase">percentual</string>
                    <float id="offset">0.00</float>
                    <string id="cheat" values="yesno">yes</string>
                    <string id="ignoreCooldown" values="yesno">yes</string>
                </action>
                <action id="wait">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">14.00</float>
                </action>
            </condition>
        </condition>
        <condition id="unitNear">
            <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
            <string id="rangeType" values="offsetsFromBase">percentual</string>
            <float id="range">60.00</float>
            <string id="ownUnits" values="yesno">no</string>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">20.00</float>
                <action id="setBool">
                    <string id="id">NOT</string>
                    <string id="value" values="yesno">no</string>
                </action>
                <condition id="unitNear">
                    <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
                    <string id="rangeType" values="offsetsFromBase">percentual</string>
                    <float id="range">35.00</float>
                    <string id="ownUnits" values="yesno">no</string>
                    <action id="useAbility">
                        <string id="abilityType" values="abilities">AsianArrowRain</string>
                        <string id="unitType" values="enemies">ANY</string>
                        <string id="target" values="targets">FrontUnit</string>
                        <string id="ownUnits" values="yesno">no</string>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                        <string id="ignoreFogOfWar" values="yesno">yes</string>
                    </action>
                    <action id="setBool">
                        <string id="id">NOT</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </condition>
                <condition id="timer">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">60.00</float>
                    <condition id="getBool">
                        <string id="id">NOT</string>
                        <string id="value" values="yesno">no</string>
                        <action id="useAbility">
                            <string id="abilityType" values="abilities">AsianArrowRain</string>
                            <string id="unitType" values="enemies">AztecWorker</string>
                            <string id="target" values="targets">FrontUnit</string>
                            <string id="ownUnits" values="yesno">no</string>
                            <string id="cheat" values="yesno">yes</string>
                            <string id="ignoreCooldown" values="yesno">yes</string>
                            <string id="ignoreFogOfWar" values="yesno">yes</string>
                        </action>
                        <action id="useAbility">
                            <string id="abilityType" values="abilities">AsianArrowRain</string>
                            <string id="unitType" values="enemies">AztecWorker</string>
                            <string id="target" values="targets">FrontUnit</string>
                            <string id="ownUnits" values="yesno">no</string>
                            <string id="cheat" values="yesno">yes</string>
                            <string id="ignoreCooldown" values="yesno">yes</string>
                            <string id="ignoreFogOfWar" values="yesno">yes</string>
                        </action>
                    </condition>
                </condition>
                <condition id="unitNear">
                    <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
                    <string id="rangeType" values="offsetsFromBase">percentual</string>
                    <float id="range">10.00</float>
                    <string id="ownUnits" values="yesno">no</string>
                    <action id="useAbility">
                        <string id="abilityType" values="abilities">AsianArrowRain</string>
                        <string id="unitType" values="enemies">ANY</string>
                        <string id="target" values="targets">FrontUnit</string>
                        <string id="ownUnits" values="yesno">no</string>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                        <string id="ignoreFogOfWar" values="yesno">yes</string>
                    </action>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">1.00</float>
            <condition id="unitNear">
                <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
                <string id="rangeType" values="offsetsFromBase">percentual</string>
                <float id="range">40.00</float>
                <string id="ownUnits" values="yesno">no</string>
                <condition id="timer">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">1.00</float>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianMelee</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                </condition>
            </condition>
        </condition>
    </behaviour>
</enemy>
