<?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="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">seconds</string>
            <float id="time">240.00</float>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">25.00</float>
                <condition id="getBool">
                    <string id="id">Phase1</string>
                    <string id="value" values="yesno">yes</string>
                    <condition id="random">
                        <int id="amount">7</int>
                        <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">no</string>
                            <string id="ignoreCooldown" values="yesno">no</string>
                        </action>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">Phase2</string>
                    <string id="value" values="yesno">yes</string>
                    <condition id="random">
                        <int id="amount">2</int>
                        <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">no</string>
                            <string id="ignoreCooldown" values="yesno">no</string>
                        </action>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">Phase3</string>
                    <string id="value" values="yesno">yes</string>
                    <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">no</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                    </action>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">138.00</float>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">14.00</float>
                <condition id="getBool">
                    <string id="id">Phase1</string>
                    <string id="value" values="yesno">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">no</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                    </action>
                </condition>
                <condition id="getBool">
                    <string id="id">Phase2</string>
                    <string id="value" values="yesno">yes</string>
                    <condition id="random">
                        <int id="amount">3</int>
                        <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">no</string>
                            <string id="ignoreCooldown" values="yesno">no</string>
                        </action>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">Phase3</string>
                    <string id="value" values="yesno">yes</string>
                    <condition id="random">
                        <int id="amount">5</int>
                        <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">no</string>
                            <string id="ignoreCooldown" values="yesno">no</string>
                        </action>
                    </condition>
                </condition>
            </condition>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">35.00</float>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">AztecNecromancer</string>
                    <string id="logic" values="unitcountlogic">greater</string>
                    <string id="ownUnits" values="yesno">no</string>
                    <int id="unitCount">0</int>
                    <condition id="unitNear">
                        <string id="unitType" values="enemies" multiselect="true">AztecNecromancer;;</string>
                        <string id="rangeType" values="offsetsFromBase">percentual</string>
                        <float id="range">45.00</float>
                        <string id="ownUnits" values="yesno">no</string>
                        <action id="useAbility">
                            <string id="abilityType" values="abilities">AsianTerracotta</string>
                            <string id="unitType" values="enemies">AztecNecromancer</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>
            </condition>
            <condition id="getBool">
                <string id="id">AsianIntroDone</string>
                <string id="value" values="yesno">no</string>
                <action id="setBool">
                    <string id="id">AsianIntroDone</string>
                    <string id="value" values="yesno">yes</string>
                </action>
                <action id="setBool">
                    <string id="id">AsianIntroFinalDone</string>
                    <string id="value" values="yesno">yes</string>
                </action>
            </condition>
            <condition id="getBool">
                <string id="id">AsianIntroFinalDone</string>
                <string id="value" values="yesno">yes</string>
                <action id="setBool">
                    <string id="id">MindControlled</string>
                    <string id="value" values="yesno">no</string>
                </action>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">VikingCatapult</string>
                    <string id="logic" values="unitcountlogic">greater</string>
                    <string id="ownUnits" values="yesno">no</string>
                    <int id="unitCount">1</int>
                    <action id="setBool">
                        <string id="id">MindControlled</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </condition>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">VikingMelee</string>
                    <string id="logic" values="unitcountlogic">greater</string>
                    <string id="ownUnits" values="yesno">no</string>
                    <int id="unitCount">1</int>
                    <action id="setBool">
                        <string id="id">MindControlled</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </condition>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">VikingHammer</string>
                    <string id="logic" values="unitcountlogic">greater</string>
                    <string id="ownUnits" values="yesno">no</string>
                    <int id="unitCount">1</int>
                    <action id="setBool">
                        <string id="id">MindControlled</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </condition>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">VikingRanged</string>
                    <string id="logic" values="unitcountlogic">greater</string>
                    <string id="ownUnits" values="yesno">no</string>
                    <int id="unitCount">1</int>
                    <action id="setBool">
                        <string id="id">MindControlled</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </condition>
                <condition id="getBool">
                    <string id="id">MindControlled</string>
                    <string id="value" values="yesno">yes</string>
                    <sequence>
                        <string id="Is blocking">yes</string>
                        <action id="setFreezeGame">
                            <string id="Freeze game" values="yesno">yes</string>
                            <string id="Freeze input" values="yesno">yes</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl210b1_asianemperor leave</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_asianemperor</string>
                            <string id="Location" values="textLocation">right</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl210b2_king brat</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_aztecking</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl210b3_redbeard easy</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_chief</string>
                            <string id="Location" values="textLocation">right</string>
                        </action>
                        <action id="setFreezeGame">
                            <string id="Freeze game" values="yesno">no</string>
                            <string id="Freeze input" values="yesno">no</string>
                        </action>
                    </sequence>
                </condition>
                <condition id="getBool">
                    <string id="id">MindControlled</string>
                    <string id="value" values="yesno">no</string>
                    <sequence>
                        <string id="Is blocking">yes</string>
                        <action id="setFreezeGame">
                            <string id="Freeze game" values="yesno">yes</string>
                            <string id="Freeze input" values="yesno">yes</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl210b1_asianemperor leave</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_asianemperor</string>
                            <string id="Location" values="textLocation">right</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl210b2_king brat</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_aztecking</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl210b3_redbeard easy</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_chief</string>
                            <string id="Location" values="textLocation">right</string>
                        </action>
                        <action id="setFreezeGame">
                            <string id="Freeze game" values="yesno">no</string>
                            <string id="Freeze input" values="yesno">no</string>
                        </action>
                    </sequence>
                </condition>
                <action id="setBool">
                    <string id="id">AsianIntroFinalDone</string>
                    <string id="value" values="yesno">no</string>
                </action>
            </condition>
            <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>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">VikingHammer</string>
                    <string id="logic" values="unitcountlogic">lesser</string>
                    <string id="ownUnits" values="yesno">yes</string>
                    <int id="unitCount">1</int>
                    <condition id="unitCount">
                        <string id="unitType" values="enemies">VikingMelee</string>
                        <string id="logic" values="unitcountlogic">equals</string>
                        <string id="ownUnits" values="yesno">yes</string>
                        <int id="unitCount">0</int>
                        <condition id="unitCount">
                            <string id="unitType" values="enemies">VikingRanged</string>
                            <string id="logic" values="unitcountlogic">lesser_equals</string>
                            <string id="ownUnits" values="yesno">yes</string>
                            <int id="unitCount">2</int>
                            <condition id="unitCount">
                                <string id="unitType" values="enemies">VikingCatapult</string>
                                <string id="logic" values="unitcountlogic">equals</string>
                                <string id="ownUnits" values="yesno">yes</string>
                                <int id="unitCount">0</int>
                                <condition id="getBool">
                                    <string id="id">VikingBaseDead</string>
                                    <string id="value" values="yesno">no</string>
                                    <sequence>
                                        <string id="Is blocking">yes</string>
                                        <action id="setFreezeGame">
                                            <string id="Freeze game" values="yesno">yes</string>
                                            <string id="Freeze input" values="yesno">yes</string>
                                        </action>
                                        <action id="showText">
                                            <string id="Text identifier">lvl210f1_thor fail</string>
                                            <float id="Duration">0.00</float>
                                            <string id="Texture">portrait_thor</string>
                                            <string id="Location" values="textLocation">right</string>
                                        </action>
                                        <action id="showText">
                                            <string id="Text identifier">lvl210f2_redbeard sorry</string>
                                            <float id="Duration">0.00</float>
                                            <string id="Texture">portrait_chief</string>
                                            <string id="Location" values="textLocation">left</string>
                                        </action>
                                        <action id="showText">
                                            <string id="Text identifier">lvl210f3_emperor worry</string>
                                            <float id="Duration">0.00</float>
                                            <string id="Texture">portrait_asianemperor</string>
                                            <string id="Location" values="textLocation">right</string>
                                        </action>
                                        <action id="setFreezeGame">
                                            <string id="Freeze game" values="yesno">no</string>
                                            <string id="Freeze input" values="yesno">no</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">DoTrickery</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                        <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>
                                        <action id="wait">
                                            <string id="timeunit" values="timeunits">seconds</string>
                                            <float id="time">2.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">2.00</float>
                                        </action>
                                        <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">no</string>
                                            <string id="ignoreCooldown" values="yesno">no</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">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">AsianInstantKiller</string>
                                            <string id="offsetType" values="offsetsFromBase">percentual</string>
                                            <float id="offset">0.00</float>
                                            <string id="cheat" values="yesno">no</string>
                                            <string id="ignoreCooldown" values="yesno">no</string>
                                        </action>
                                        <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">no</string>
                                            <string id="ignoreCooldown" values="yesno">no</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">VikingBaseDead</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </sequence>
                                </condition>
                            </condition>
                        </condition>
                    </condition>
                </condition>
            </condition>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">1.00</float>
                <action id="addMoney">
                    <float id="Amount">0.50</float>
                    <string id="Team" values="teams">ownTeam</string>
                </action>
                <action id="addMana">
                    <float id="Amount">0.50</float>
                    <string id="Team" values="teams">ownTeam</string>
                </action>
            </condition>
            <condition id="getBool">
                <string id="id">DoTrickery</string>
                <string id="value" values="yesno">yes</string>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">ANY</string>
                    <string id="logic" values="unitcountlogic">lesser</string>
                    <string id="ownUnits" values="yesno">yes</string>
                    <int id="unitCount">35</int>
                    <condition id="timer">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">18.00</float>
                        <condition id="random">
                            <int id="amount">8</int>
                            <action id="useAbility">
                                <string id="abilityType" values="abilities">AsianInvulnerability</string>
                                <string id="unitType" values="enemies">ANY</string>
                                <string id="target" values="targets">FrontUnit</string>
                                <string id="ownUnits" values="yesno">yes</string>
                                <string id="cheat" values="yesno">no</string>
                                <string id="ignoreCooldown" values="yesno">no</string>
                                <string id="ignoreFogOfWar" values="yesno">yes</string>
                            </action>
                        </condition>
                        <action id="useAbility">
                            <string id="abilityType" values="abilities">AsianYinYang</string>
                            <string id="unitType" values="enemies">AsianInstantKiller</string>
                            <string id="target" values="targets">FrontUnit</string>
                            <string id="ownUnits" values="yesno">yes</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">AsianYinYang</string>
                            <string id="unitType" values="enemies">AsianMelee</string>
                            <string id="target" values="targets">All</string>
                            <string id="ownUnits" values="yesno">yes</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>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">160.00</float>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">15.00</float>
                <condition id="getBool">
                    <string id="id">Phase1</string>
                    <string id="value" values="yesno">yes</string>
                    <condition id="random">
                        <int id="amount">4</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">no</string>
                            <string id="ignoreCooldown" values="yesno">no</string>
                        </action>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">Phase2</string>
                    <string id="value" values="yesno">yes</string>
                    <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">no</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                    </action>
                    <condition id="getBool">
                        <string id="id">Saving</string>
                        <string id="value" values="yesno">no</string>
                        <action id="useAbility">
                            <string id="abilityType" values="abilities">AsianInvulnerability</string>
                            <string id="unitType" values="enemies">ANY</string>
                            <string id="target" values="targets">FrontUnit</string>
                            <string id="ownUnits" values="yesno">yes</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>
                <condition id="getBool">
                    <string id="id">Phase3</string>
                    <string id="value" values="yesno">yes</string>
                    <condition id="random">
                        <int id="amount">2</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">no</string>
                            <string id="ignoreCooldown" values="yesno">no</string>
                        </action>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">200.00</float>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">22.00</float>
                <condition id="getBool">
                    <string id="id">Phase1</string>
                    <string id="value" values="yesno">yes</string>
                    <condition id="random">
                        <int id="amount">7</int>
                        <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">no</string>
                            <string id="ignoreCooldown" values="yesno">no</string>
                        </action>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">Phase2</string>
                    <string id="value" values="yesno">yes</string>
                    <condition id="random">
                        <int id="amount">2</int>
                        <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">no</string>
                            <string id="ignoreCooldown" values="yesno">no</string>
                        </action>
                    </condition>
                    <condition id="unitCount">
                        <string id="unitType" values="enemies">ANY</string>
                        <string id="logic" values="unitcountlogic">greater</string>
                        <string id="ownUnits" values="yesno">no</string>
                        <int id="unitCount">16</int>
                        <condition id="unitCount">
                            <string id="unitType" values="enemies">ANY</string>
                            <string id="logic" values="unitcountlogic">greater</string>
                            <string id="ownUnits" values="yesno">yes</string>
                            <int id="unitCount">16</int>
                            <condition id="random">
                                <int id="amount">3</int>
                                <action id="useAbility">
                                    <string id="abilityType" values="abilities">AsianYinYang</string>
                                    <string id="unitType" values="enemies">AsianInstantKiller</string>
                                    <string id="target" values="targets">FrontUnit</string>
                                    <string id="ownUnits" values="yesno">yes</string>
                                    <string id="cheat" values="yesno">no</string>
                                    <string id="ignoreCooldown" values="yesno">no</string>
                                    <string id="ignoreFogOfWar" values="yesno">yes</string>
                                </action>
                                <action id="setBool">
                                    <string id="id">Saving</string>
                                    <string id="value" values="yesno">no</string>
                                </action>
                            </condition>
                        </condition>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">Phase3</string>
                    <string id="value" values="yesno">yes</string>
                    <condition id="random">
                        <int id="amount">4</int>
                        <action id="setBool">
                            <string id="id">Saving</string>
                            <string id="value" values="yesno">no</string>
                        </action>
                        <action id="useAbility">
                            <string id="abilityType" values="abilities">AsianYinYang</string>
                            <string id="unitType" values="enemies">AsianRanged</string>
                            <string id="target" values="targets">FrontUnit</string>
                            <string id="ownUnits" values="yesno">yes</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="unitNear">
                <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
                <string id="rangeType" values="offsetsFromBase">percentual</string>
                <float id="range">55.00</float>
                <string id="ownUnits" values="yesno">no</string>
                <action id="setBool">
                    <string id="id">NOT</string>
                    <string id="value" values="yesno">no</string>
                </action>
                <condition id="timePassed">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">240.00</float>
                    <action id="setBool">
                        <string id="id">NOT</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                    <condition id="timer">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">18.00</float>
                        <condition id="random">
                            <int id="amount">3</int>
                            <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">no</string>
                                <string id="ignoreCooldown" values="yesno">no</string>
                                <string id="ignoreFogOfWar" values="yesno">yes</string>
                            </action>
                        </condition>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">NOT</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="unitNear">
                        <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
                        <string id="rangeType" values="offsetsFromBase">percentual</string>
                        <float id="range">30.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="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">no</string>
                                <string id="ignoreCooldown" values="yesno">no</string>
                                <string id="ignoreFogOfWar" values="yesno">yes</string>
                            </action>
                        </condition>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">Phase1</string>
            <string id="value" values="yesno">yes</string>
            <condition id="timePassed">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">80.00</float>
                <action id="setBool">
                    <string id="id">Phase1</string>
                    <string id="value" values="yesno">no</string>
                </action>
                <action id="setBool">
                    <string id="id">Phase2</string>
                    <string id="value" values="yesno">yes</string>
                </action>
                <action id="setBool">
                    <string id="id">Phase3</string>
                    <string id="value" values="yesno">no</string>
                </action>
            </condition>
            <condition id="unitCount">
                <string id="unitType" values="enemies">AztecGiant</string>
                <string id="logic" values="unitcountlogic">greater</string>
                <string id="ownUnits" values="yesno">no</string>
                <int id="unitCount">0</int>
                <action id="setBool">
                    <string id="id">Phase1</string>
                    <string id="value" values="yesno">no</string>
                </action>
                <action id="setBool">
                    <string id="id">Phase2</string>
                    <string id="value" values="yesno">yes</string>
                </action>
                <action id="setBool">
                    <string id="id">Phase3</string>
                    <string id="value" values="yesno">no</string>
                </action>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">Phase2</string>
            <string id="value" values="yesno">yes</string>
            <condition id="timePassed">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">180.00</float>
                <action id="setBool">
                    <string id="id">Phase2</string>
                    <string id="value" values="yesno">no</string>
                </action>
                <action id="setBool">
                    <string id="id">Phase3</string>
                    <string id="value" values="yesno">yes</string>
                </action>
                <action id="setBool">
                    <string id="id">Phase1</string>
                    <string id="value" values="yesno">no</string>
                </action>
            </condition>
            <condition id="unitCount">
                <string id="unitType" values="enemies">ANY</string>
                <string id="logic" values="unitcountlogic">greater</string>
                <string id="ownUnits" values="yesno">no</string>
                <int id="unitCount">35</int>
                <action id="setBool">
                    <string id="id">Phase1</string>
                    <string id="value" values="yesno">no</string>
                </action>
                <action id="setBool">
                    <string id="id">Phase2</string>
                    <string id="value" values="yesno">no</string>
                </action>
                <action id="setBool">
                    <string id="id">Phase3</string>
                    <string id="value" values="yesno">yes</string>
                </action>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">Phase3</string>
            <string id="value" values="yesno">yes</string>
            <condition id="getBool">
                <string id="id">Saving</string>
                <string id="value" values="yesno">no</string>
                <condition id="timer">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">15.00</float>
                    <condition id="random">
                        <int id="amount">12</int>
                        <action id="setBool">
                            <string id="id">Saving</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </condition>
                    <condition id="unitCount">
                        <string id="unitType" values="enemies">ANY</string>
                        <string id="logic" values="unitcountlogic">equals</string>
                        <string id="ownUnits" values="yesno">no</string>
                        <int id="unitCount">8</int>
                        <condition id="random">
                            <int id="amount">3</int>
                            <action id="setBool">
                                <string id="id">Saving</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                        </condition>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.00</float>
            <condition id="unitCount">
                <string id="unitType" values="enemies">AsianWorker</string>
                <string id="logic" values="unitcountlogic">lesser</string>
                <string id="ownUnits" values="yesno">yes</string>
                <int id="unitCount">15</int>
                <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">25.00</float>
                    <string id="ownUnits" values="yesno">no</string>
                    <action id="setBool">
                        <string id="id">NOT</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </condition>
                <condition id="getBool">
                    <string id="id">NOT</string>
                    <string id="value" values="yesno">no</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">VikingWorker</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">35.00</float>
                        <string id="cheat" values="yesno">no</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                    </action>
                </condition>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">VikingWorker</string>
                    <string id="logic" values="unitcountlogic">lesser_equals</string>
                    <string id="ownUnits" values="yesno">yes</string>
                    <int id="unitCount">8</int>
                    <action id="setBool">
                        <string id="id">Phase1</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                    <action id="setBool">
                        <string id="id">Phase2</string>
                        <string id="value" values="yesno">no</string>
                    </action>
                    <action id="setBool">
                        <string id="id">Phase3</string>
                        <string id="value" values="yesno">no</string>
                    </action>
                </condition>
            </condition>
        </condition>
    </behaviour>
</enemy>
