<?xml version="1.0" ?>
<enemy>
    <behaviour>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">3.00</float>
            <condition id="getBool">
                <string id="id">RushDecisionMade?</string>
                <string id="value" values="yesno">no</string>
                <condition id="random">
                    <int id="amount">1</int>
                    <action id="setBool">
                        <string id="id">NOT</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                    <action id="setBool">
                        <string id="id">Rushing?</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                    <action id="setBool">
                        <string id="id">RegularRush?</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                    <condition id="random">
                        <int id="amount">2</int>
                        <action id="setBool">
                            <string id="id">RangedRush?</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                        <action id="setBool">
                            <string id="id">RegularRush?</string>
                            <string id="value" values="yesno">no</string>
                        </action>
                    </condition>
                    <condition id="random">
                        <int id="amount">2</int>
                        <action id="setBool">
                            <string id="id">RangedRush?</string>
                            <string id="value" values="yesno">no</string>
                        </action>
                        <action id="setBool">
                            <string id="id">RegularRush?</string>
                            <string id="value" values="yesno">no</string>
                        </action>
                        <action id="setBool">
                            <string id="id">CounterRush?</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">NOT</string>
                    <string id="value" values="yesno">no</string>
                    <action id="setBool">
                        <string id="id">Rushing?</string>
                        <string id="value" values="yesno">no</string>
                    </action>
                    <action id="setBool">
                        <string id="id">Phase1</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </condition>
                <action id="setBool">
                    <string id="id">RushDecisionMade?</string>
                    <string id="value" values="yesno">yes</string>
                </action>
            </condition>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">1.00</float>
                <condition id="getBool">
                    <string id="id">PathSwitcher</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="getBool">
                        <string id="id">SafeToUpgrade?</string>
                        <string id="value" values="yesno">yes</string>
                        <condition id="random">
                            <int id="amount">12</int>
                            <action id="setTwoWay">
                                <int id="Index">0</int>
                                <string id="CountFromOwnBase" values="yesno">no</string>
                                <string id="Type" values="twoWayChoices">switch</string>
                            </action>
                        </condition>
                    </condition>
                    <condition id="getBool">
                        <string id="id">SafeToUpgrade?</string>
                        <string id="value" values="yesno">no</string>
                        <condition id="random">
                            <int id="amount">6</int>
                            <action id="setTwoWay">
                                <int id="Index">0</int>
                                <string id="CountFromOwnBase" values="yesno">yes</string>
                                <string id="Type" values="twoWayChoices">most enemies</string>
                            </action>
                        </condition>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="timer">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">2.00</float>
            <condition id="getBool">
                <string id="id">WORKER HANDLING TREE</string>
                <string id="value" values="yesno">no</string>
                <condition id="getBool">
                    <string id="id">AreWeAttacked?</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="getBool">
                        <string id="id">Rushing?</string>
                        <string id="value" values="yesno">yes</string>
                        <action id="setBool">
                            <string id="id">NOT</string>
                            <string id="value" values="yesno">no</string>
                        </action>
                        <condition id="counter">
                            <string id="id">RushingPhase?</string>
                            <int id="count">4</int>
                            <condition id="unitCount">
                                <string id="unitType" values="enemies">VikingWorker</string>
                                <string id="logic" values="unitcountlogic">lesser</string>
                                <string id="ownUnits" values="yesno">yes</string>
                                <int id="unitCount">5</int>
                                <action id="setBool">
                                    <string id="id">BuildAWorker?</string>
                                    <string id="value" values="yesno">yes</string>
                                </action>
                            </condition>
                            <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="setBool">
                                <string id="id">BuildAWorker?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                        </condition>
                    </condition>
                    <condition id="getBool">
                        <string id="id">Rushing?</string>
                        <string id="value" values="yesno">no</string>
                        <action id="setBool">
                            <string id="id">BuildAWorker?</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="timer">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.40</float>
            <condition id="getBool">
                <string id="id">RUSH HANDLING TREE</string>
                <string id="value" values="yesno">no</string>
                <condition id="getBool">
                    <string id="id">Rushing?</string>
                    <string id="value" values="yesno">yes</string>
                    <condition id="timer">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">2.00</float>
                        <condition id="getBool">
                            <string id="id">RegularRush?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="setBool">
                                <string id="id">BuildMelee?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <condition id="random">
                                <int id="amount">3</int>
                                <action id="incrementCounter">
                                    <string id="id">RushingPhase?</string>
                                </action>
                            </condition>
                        </condition>
                        <condition id="getBool">
                            <string id="id">StunRush?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="setBool">
                                <string id="id">BuildStun?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <condition id="random">
                                <int id="amount">3</int>
                                <action id="incrementCounter">
                                    <string id="id">RushingPhase?</string>
                                </action>
                            </condition>
                        </condition>
                        <condition id="getBool">
                            <string id="id">RangedRush?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="setBool">
                                <string id="id">BuildRanged?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <condition id="random">
                                <int id="amount">4</int>
                                <action id="incrementCounter">
                                    <string id="id">RushingPhase?</string>
                                </action>
                            </condition>
                        </condition>
                    </condition>
                    <condition id="getBool">
                        <string id="id">CounterRush?</string>
                        <string id="value" values="yesno">yes</string>
                        <condition id="getBool">
                            <string id="id">CounterDecided?</string>
                            <string id="value" values="yesno">no</string>
                            <condition id="buttonEnabled">
                                <string id="Button" values="buttons">VikingMelee</string>
                                <string id="Team to check" values="teams">enemyTeam</string>
                                <string id="didUpgrade" values="yesno">yes</string>
                                <action id="setBool">
                                    <string id="id">SetCounterStun</string>
                                    <string id="value" values="yesno">yes</string>
                                </action>
                            </condition>
                            <condition id="buttonEnabled">
                                <string id="Button" values="buttons">AsianMelee</string>
                                <string id="Team to check" values="teams">enemyTeam</string>
                                <string id="didUpgrade" values="yesno">yes</string>
                                <action id="setBool">
                                    <string id="id">SetCounterStun</string>
                                    <string id="value" values="yesno">yes</string>
                                </action>
                            </condition>
                            <condition id="buttonEnabled">
                                <string id="Button" values="buttons">AsianMelee</string>
                                <string id="Team to check" values="teams">enemyTeam</string>
                                <string id="didUpgrade" values="yesno">yes</string>
                                <action id="setBool">
                                    <string id="id">SetCounterStun</string>
                                    <string id="value" values="yesno">yes</string>
                                </action>
                            </condition>
                        </condition>
                        <condition id="getBool">
                            <string id="id">CounterDecided?</string>
                            <string id="value" values="yesno">no</string>
                            <condition id="buttonEnabled">
                                <string id="Button" values="buttons">VikingRanged</string>
                                <string id="Team to check" values="teams">enemyTeam</string>
                                <string id="didUpgrade" values="yesno">yes</string>
                                <action id="setBool">
                                    <string id="id">SetCounterRegular</string>
                                    <string id="value" values="yesno">yes</string>
                                </action>
                            </condition>
                            <condition id="buttonEnabled">
                                <string id="Button" values="buttons">AsianRanged</string>
                                <string id="Team to check" values="teams">enemyTeam</string>
                                <string id="didUpgrade" values="yesno">yes</string>
                                <action id="setBool">
                                    <string id="id">SetCounterRegular</string>
                                    <string id="value" values="yesno">yes</string>
                                </action>
                            </condition>
                            <condition id="buttonEnabled">
                                <string id="Button" values="buttons">AztecRanged</string>
                                <string id="Team to check" values="teams">enemyTeam</string>
                                <string id="didUpgrade" values="yesno">yes</string>
                                <action id="setBool">
                                    <string id="id">SetCounterRegular</string>
                                    <string id="value" values="yesno">yes</string>
                                </action>
                            </condition>
                        </condition>
                        <condition id="getBool">
                            <string id="id">CounterDecided?</string>
                            <string id="value" values="yesno">no</string>
                            <condition id="buttonEnabled">
                                <string id="Button" values="buttons">VikingHammer</string>
                                <string id="Team to check" values="teams">enemyTeam</string>
                                <string id="didUpgrade" values="yesno">yes</string>
                                <action id="setBool">
                                    <string id="id">SetCounterRanged</string>
                                    <string id="value" values="yesno">yes</string>
                                </action>
                            </condition>
                            <condition id="buttonEnabled">
                                <string id="Button" values="buttons">AsianNinja</string>
                                <string id="Team to check" values="teams">enemyTeam</string>
                                <string id="didUpgrade" values="yesno">yes</string>
                                <action id="setBool">
                                    <string id="id">SetCounterRanged</string>
                                    <string id="value" values="yesno">yes</string>
                                </action>
                            </condition>
                            <condition id="buttonEnabled">
                                <string id="Button" values="buttons">AztecGiant</string>
                                <string id="Team to check" values="teams">enemyTeam</string>
                                <string id="didUpgrade" values="yesno">yes</string>
                                <action id="setBool">
                                    <string id="id">SetCounterRanged</string>
                                    <string id="value" values="yesno">yes</string>
                                </action>
                            </condition>
                        </condition>
                        <condition id="timePassed">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">25.00</float>
                            <action id="setBool">
                                <string id="id">SetCounterRanged</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                        </condition>
                        <condition id="getBool">
                            <string id="id">SetCounterStun</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="setBool">
                                <string id="id">CounterDecided?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <action id="setBool">
                                <string id="id">StunRush?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <action id="setBool">
                                <string id="id">CounterRush?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                            <action id="setBool">
                                <string id="id">SetCounterStun</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                        </condition>
                        <condition id="getBool">
                            <string id="id">SetCounterRanged</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="setBool">
                                <string id="id">CounterDecided?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <action id="setBool">
                                <string id="id">RegularRush?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <action id="setBool">
                                <string id="id">CounterRush?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                            <action id="setBool">
                                <string id="id">SetCounterRanged</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                        </condition>
                        <condition id="getBool">
                            <string id="id">SetCounterRegular</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="setBool">
                                <string id="id">CounterDecided?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <action id="setBool">
                                <string id="id">RangedRush?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <action id="setBool">
                                <string id="id">CounterRush?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                            <action id="setBool">
                                <string id="id">SetCounterRegular</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                        </condition>
                    </condition>
                    <condition id="unitCount">
                        <string id="unitType" values="enemies">ANY</string>
                        <string id="logic" values="unitcountlogic">greater_equals</string>
                        <string id="ownUnits" values="yesno">yes</string>
                        <int id="unitCount">9</int>
                        <condition id="getBool">
                            <string id="id">FirstRushRageDone?</string>
                            <string id="value" values="yesno">no</string>
                            <action id="setBool">
                                <string id="id">FirstRushRageDone?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <sequence>
                                <string id="Is blocking">no</string>
                                <action id="addMoney">
                                    <float id="Amount">-60.00</float>
                                    <string id="Team" values="teams">ownTeam</string>
                                </action>
                                <action id="wait">
                                    <string id="timeunit" values="timeunits">seconds</string>
                                    <float id="time">2.00</float>
                                </action>
                                <action id="useAbility">
                                    <string id="abilityType" values="abilities">VikingHaste</string>
                                    <string id="unitType" values="enemies">ANY</string>
                                    <string id="target" values="targets">BackMilitaryUnit</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">no</string>
                                </action>
                            </sequence>
                        </condition>
                        <condition id="getBool">
                            <string id="id">FirstRushRageDone?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="setBool">
                                <string id="id">NOT</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                            <condition id="random">
                                <int id="amount">5</int>
                                <action id="useAbility">
                                    <string id="abilityType" values="abilities">VikingHaste</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">no</string>
                                </action>
                                <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="useAbility">
                                    <string id="abilityType" values="abilities">VikingHaste</string>
                                    <string id="unitType" values="enemies">ANY</string>
                                    <string id="target" values="targets">BackMilitaryUnit</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">no</string>
                                </action>
                            </condition>
                        </condition>
                    </condition>
                    <action id="setBool">
                        <string id="id">NOT</string>
                        <string id="value" values="yesno">no</string>
                    </action>
                    <condition id="counter">
                        <string id="id">RushingPhase?</string>
                        <int id="count">6</int>
                        <action id="setBool">
                            <string id="id">NOT</string>
                            <string id="value" values="yesno">yes</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">60.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="setBool">
                            <string id="id">Rushing?</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">StunRush?</string>
                            <string id="value" values="yesno">no</string>
                        </action>
                        <action id="setBool">
                            <string id="id">RangedRush?</string>
                            <string id="value" values="yesno">no</string>
                        </action>
                        <action id="setBool">
                            <string id="id">RegularRush?</string>
                            <string id="value" values="yesno">no</string>
                        </action>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="timer">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.40</float>
            <condition id="getBool">
                <string id="id">REGULAR HANDLING TREE</string>
                <string id="value" values="yesno">no</string>
                <condition id="getBool">
                    <string id="id">Countering?</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="getBool">
                        <string id="id">Rushing?</string>
                        <string id="value" values="yesno">no</string>
                        <condition id="timePassed">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">12.00</float>
                            <condition id="timer">
                                <string id="timeunit" values="timeunits">seconds</string>
                                <float id="time">6.00</float>
                                <condition id="getBool">
                                    <string id="id">Phase1</string>
                                    <string id="value" values="yesno">yes</string>
                                    <action id="setBool">
                                        <string id="id">BuildMelee?</string>
                                        <string id="value" values="yesno">yes</string>
                                    </action>
                                </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="setBool">
                                            <string id="id">BuildMelee?</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="random">
                                        <int id="amount">5</int>
                                        <action id="setBool">
                                            <string id="id">BuildMelee?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                </condition>
                            </condition>
                        </condition>
                        <condition id="timePassed">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">24.00</float>
                            <condition id="timer">
                                <string id="timeunit" values="timeunits">seconds</string>
                                <float id="time">7.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="setBool">
                                            <string id="id">BuildRanged?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                </condition>
                                <condition id="getBool">
                                    <string id="id">Phase2</string>
                                    <string id="value" values="yesno">yes</string>
                                    <action id="setBool">
                                        <string id="id">BuildRanged?</string>
                                        <string id="value" values="yesno">yes</string>
                                    </action>
                                </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="setBool">
                                            <string id="id">BuildRanged?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                </condition>
                            </condition>
                        </condition>
                        <condition id="timePassed">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">30.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">1</int>
                                <condition id="timer">
                                    <string id="timeunit" values="timeunits">seconds</string>
                                    <float id="time">10.00</float>
                                    <condition id="getBool">
                                        <string id="id">Phase1</string>
                                        <string id="value" values="yesno">yes</string>
                                        <action id="setBool">
                                            <string id="id">BuildStun?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </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="setBool">
                                                <string id="id">BuildStun?</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="random">
                                            <int id="amount">7</int>
                                            <action id="setBool">
                                                <string id="id">BuildStun?</string>
                                                <string id="value" values="yesno">yes</string>
                                            </action>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                            <condition id="timePassed">
                                <string id="timeunit" values="timeunits">seconds</string>
                                <float id="time">40.00</float>
                                <condition id="timer">
                                    <string id="timeunit" values="timeunits">seconds</string>
                                    <float id="time">8.00</float>
                                    <condition id="getBool">
                                        <string id="id">Phase1</string>
                                        <string id="value" values="yesno">yes</string>
                                        <action id="setBool">
                                            <string id="id">BuildStun?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </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="setBool">
                                                <string id="id">BuildStun?</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="random">
                                            <int id="amount">7</int>
                                            <action id="setBool">
                                                <string id="id">BuildStun?</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">90.00</float>
                            <condition id="timer">
                                <string id="timeunit" values="timeunits">seconds</string>
                                <float id="time">14.00</float>
                                <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="setBool">
                                            <string id="id">BuildSpecial?</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>
                                    <action id="setBool">
                                        <string id="id">BuildSpecial?</string>
                                        <string id="value" values="yesno">yes</string>
                                    </action>
                                </condition>
                            </condition>
                        </condition>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="timer">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.40</float>
            <condition id="getBool">
                <string id="id">COUNTER HANDLING TREE</string>
                <string id="value" values="yesno">no</string>
                <condition id="getBool">
                    <string id="id">Rushing?</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="getBool">
                        <string id="id">Countering?</string>
                        <string id="value" values="yesno">no</string>
                        <condition id="getBool">
                            <string id="id">VIKING COUNTERS</string>
                            <string id="value" values="yesno">no</string>
                            <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">6</int>
                                <condition id="unitCount">
                                    <string id="unitType" values="enemies">VikingRanged</string>
                                    <string id="logic" values="unitcountlogic">lesser</string>
                                    <string id="ownUnits" values="yesno">no</string>
                                    <int id="unitCount">3</int>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">VikingHammer</string>
                                        <string id="logic" values="unitcountlogic">lesser</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">3</int>
                                        <condition id="unitCount">
                                            <string id="unitType" values="enemies">VikingCatapult</string>
                                            <string id="logic" values="unitcountlogic">lesser</string>
                                            <string id="ownUnits" values="yesno">no</string>
                                            <int id="unitCount">3</int>
                                            <condition id="random">
                                                <int id="amount">3</int>
                                                <action id="setBool">
                                                    <string id="id">TriggerStunRush?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">35.00</float>
                                                    <action id="setBool">
                                                        <string id="id">TriggerRangedRush?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">90.00</float>
                                                    <action id="setBool">
                                                        <string id="id">BuildSpecial?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                            <condition id="unitCount">
                                <string id="unitType" values="enemies">VikingMelee</string>
                                <string id="logic" values="unitcountlogic">lesser</string>
                                <string id="ownUnits" values="yesno">no</string>
                                <int id="unitCount">3</int>
                                <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">6</int>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">VikingHammer</string>
                                        <string id="logic" values="unitcountlogic">lesser</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">3</int>
                                        <condition id="unitCount">
                                            <string id="unitType" values="enemies">VikingCatapult</string>
                                            <string id="logic" values="unitcountlogic">lesser</string>
                                            <string id="ownUnits" values="yesno">no</string>
                                            <int id="unitCount">3</int>
                                            <condition id="random">
                                                <int id="amount">3</int>
                                                <action id="setBool">
                                                    <string id="id">TriggerRegularRush?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">35.00</float>
                                                    <action id="setBool">
                                                        <string id="id">TriggerRangedRush?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">90.00</float>
                                                    <action id="setBool">
                                                        <string id="id">BuildSpecial?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                            <condition id="unitCount">
                                <string id="unitType" values="enemies">VikingMelee</string>
                                <string id="logic" values="unitcountlogic">lesser</string>
                                <string id="ownUnits" values="yesno">no</string>
                                <int id="unitCount">4</int>
                                <condition id="unitCount">
                                    <string id="unitType" values="enemies">VikingRanged</string>
                                    <string id="logic" values="unitcountlogic">lesser</string>
                                    <string id="ownUnits" values="yesno">no</string>
                                    <int id="unitCount">4</int>
                                    <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">4</int>
                                        <condition id="unitCount">
                                            <string id="unitType" values="enemies">VikingCatapult</string>
                                            <string id="logic" values="unitcountlogic">lesser</string>
                                            <string id="ownUnits" values="yesno">no</string>
                                            <int id="unitCount">4</int>
                                            <condition id="random">
                                                <int id="amount">3</int>
                                                <action id="setBool">
                                                    <string id="id">TriggerRangedRush?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">35.00</float>
                                                    <action id="setBool">
                                                        <string id="id">TriggerStunRush?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">90.00</float>
                                                    <action id="setBool">
                                                        <string id="id">BuildSpecial?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                        </condition>
                        <condition id="getBool">
                            <string id="id">AZTEC COUNTERS</string>
                            <string id="value" values="yesno">no</string>
                            <condition id="unitCount">
                                <string id="unitType" values="enemies">AztecMelee</string>
                                <string id="logic" values="unitcountlogic">greater</string>
                                <string id="ownUnits" values="yesno">no</string>
                                <int id="unitCount">8</int>
                                <condition id="unitCount">
                                    <string id="unitType" values="enemies">AztecRanged</string>
                                    <string id="logic" values="unitcountlogic">lesser</string>
                                    <string id="ownUnits" values="yesno">no</string>
                                    <int id="unitCount">4</int>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">AztecGiant</string>
                                        <string id="logic" values="unitcountlogic">lesser</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">3</int>
                                        <condition id="unitCount">
                                            <string id="unitType" values="enemies">AztecNecromancer</string>
                                            <string id="logic" values="unitcountlogic">lesser</string>
                                            <string id="ownUnits" values="yesno">no</string>
                                            <int id="unitCount">3</int>
                                            <condition id="random">
                                                <int id="amount">3</int>
                                                <action id="setBool">
                                                    <string id="id">TriggerStunRush?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">35.00</float>
                                                    <action id="setBool">
                                                        <string id="id">TriggerRangedRush?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">90.00</float>
                                                    <action id="setBool">
                                                        <string id="id">BuildSpecial?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                            <condition id="unitCount">
                                <string id="unitType" values="enemies">AztecMelee</string>
                                <string id="logic" values="unitcountlogic">lesser</string>
                                <string id="ownUnits" values="yesno">no</string>
                                <int id="unitCount">4</int>
                                <condition id="unitCount">
                                    <string id="unitType" values="enemies">AztecRanged</string>
                                    <string id="logic" values="unitcountlogic">greater</string>
                                    <string id="ownUnits" values="yesno">no</string>
                                    <int id="unitCount">8</int>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">AztecGiant</string>
                                        <string id="logic" values="unitcountlogic">lesser</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">3</int>
                                        <condition id="unitCount">
                                            <string id="unitType" values="enemies">AztecNecromancer</string>
                                            <string id="logic" values="unitcountlogic">lesser</string>
                                            <string id="ownUnits" values="yesno">no</string>
                                            <int id="unitCount">3</int>
                                            <condition id="random">
                                                <int id="amount">3</int>
                                                <action id="setBool">
                                                    <string id="id">TriggerRegularRush?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">35.00</float>
                                                    <action id="setBool">
                                                        <string id="id">TriggerRangedRush?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">90.00</float>
                                                    <action id="setBool">
                                                        <string id="id">BuildSpecial?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                            <condition id="unitCount">
                                <string id="unitType" values="enemies">AztecMelee</string>
                                <string id="logic" values="unitcountlogic">lesser</string>
                                <string id="ownUnits" values="yesno">no</string>
                                <int id="unitCount">5</int>
                                <condition id="unitCount">
                                    <string id="unitType" values="enemies">AztecRanged</string>
                                    <string id="logic" values="unitcountlogic">lesser</string>
                                    <string id="ownUnits" values="yesno">no</string>
                                    <int id="unitCount">5</int>
                                    <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">3</int>
                                        <condition id="unitCount">
                                            <string id="unitType" values="enemies">AztecNecromancer</string>
                                            <string id="logic" values="unitcountlogic">lesser</string>
                                            <string id="ownUnits" values="yesno">no</string>
                                            <int id="unitCount">3</int>
                                            <condition id="random">
                                                <int id="amount">3</int>
                                                <action id="setBool">
                                                    <string id="id">TriggerRangedRush?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">35.00</float>
                                                    <action id="setBool">
                                                        <string id="id">TriggerStunRush?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">90.00</float>
                                                    <action id="setBool">
                                                        <string id="id">BuildSpecial?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                            <condition id="unitCount">
                                <string id="unitType" values="enemies">AztecMelee</string>
                                <string id="logic" values="unitcountlogic">lesser</string>
                                <string id="ownUnits" values="yesno">no</string>
                                <int id="unitCount">5</int>
                                <condition id="unitCount">
                                    <string id="unitType" values="enemies">AztecRanged</string>
                                    <string id="logic" values="unitcountlogic">lesser</string>
                                    <string id="ownUnits" values="yesno">no</string>
                                    <int id="unitCount">5</int>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">AztecGiant</string>
                                        <string id="logic" values="unitcountlogic">lesser</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">3</int>
                                        <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">2</int>
                                            <condition id="random">
                                                <int id="amount">3</int>
                                                <action id="setBool">
                                                    <string id="id">TriggerStunRush?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">35.00</float>
                                                    <action id="setBool">
                                                        <string id="id">TriggerRangedRush?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">90.00</float>
                                                    <action id="setBool">
                                                        <string id="id">BuildSpecial?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                        </condition>
                        <condition id="getBool">
                            <string id="id">ASIAN COUNTERS</string>
                            <string id="value" values="yesno">no</string>
                            <condition id="unitCount">
                                <string id="unitType" values="enemies">AsianMelee</string>
                                <string id="logic" values="unitcountlogic">greater</string>
                                <string id="ownUnits" values="yesno">no</string>
                                <int id="unitCount">8</int>
                                <condition id="unitCount">
                                    <string id="unitType" values="enemies">AsianRanged</string>
                                    <string id="logic" values="unitcountlogic">lesser</string>
                                    <string id="ownUnits" values="yesno">no</string>
                                    <int id="unitCount">4</int>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">AsianNinja</string>
                                        <string id="logic" values="unitcountlogic">lesser</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">4</int>
                                        <condition id="unitCount">
                                            <string id="unitType" values="enemies">AsianInstantKiller</string>
                                            <string id="logic" values="unitcountlogic">lesser</string>
                                            <string id="ownUnits" values="yesno">no</string>
                                            <int id="unitCount">3</int>
                                            <condition id="random">
                                                <int id="amount">3</int>
                                                <action id="setBool">
                                                    <string id="id">TriggerStunRush?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">35.00</float>
                                                    <action id="setBool">
                                                        <string id="id">TriggerRangedRush?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">90.00</float>
                                                    <action id="setBool">
                                                        <string id="id">BuildSpecial?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                            <condition id="unitCount">
                                <string id="unitType" values="enemies">AsianMelee</string>
                                <string id="logic" values="unitcountlogic">lesser</string>
                                <string id="ownUnits" values="yesno">no</string>
                                <int id="unitCount">4</int>
                                <condition id="unitCount">
                                    <string id="unitType" values="enemies">AsianRanged</string>
                                    <string id="logic" values="unitcountlogic">greater</string>
                                    <string id="ownUnits" values="yesno">no</string>
                                    <int id="unitCount">8</int>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">AsianNinja</string>
                                        <string id="logic" values="unitcountlogic">lesser</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">4</int>
                                        <condition id="unitCount">
                                            <string id="unitType" values="enemies">AsianInstantKiller</string>
                                            <string id="logic" values="unitcountlogic">lesser</string>
                                            <string id="ownUnits" values="yesno">no</string>
                                            <int id="unitCount">3</int>
                                            <condition id="random">
                                                <int id="amount">3</int>
                                                <action id="setBool">
                                                    <string id="id">TriggerRegularRush?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">35.00</float>
                                                    <action id="setBool">
                                                        <string id="id">TriggerRangedRush?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">90.00</float>
                                                    <action id="setBool">
                                                        <string id="id">BuildSpecial?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                            <condition id="unitCount">
                                <string id="unitType" values="enemies">AsianMelee</string>
                                <string id="logic" values="unitcountlogic">lesser</string>
                                <string id="ownUnits" values="yesno">no</string>
                                <int id="unitCount">5</int>
                                <condition id="unitCount">
                                    <string id="unitType" values="enemies">AsianRanged</string>
                                    <string id="logic" values="unitcountlogic">lesser</string>
                                    <string id="ownUnits" values="yesno">no</string>
                                    <int id="unitCount">5</int>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">AsianNinja</string>
                                        <string id="logic" values="unitcountlogic">greater</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">6</int>
                                        <condition id="unitCount">
                                            <string id="unitType" values="enemies">AsianInstantKiller</string>
                                            <string id="logic" values="unitcountlogic">lesser</string>
                                            <string id="ownUnits" values="yesno">no</string>
                                            <int id="unitCount">3</int>
                                            <condition id="random">
                                                <int id="amount">3</int>
                                                <action id="setBool">
                                                    <string id="id">TriggerRangedRush?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">35.00</float>
                                                    <action id="setBool">
                                                        <string id="id">TriggerStunRush?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                                <condition id="timePassed">
                                                    <string id="timeunit" values="timeunits">seconds</string>
                                                    <float id="time">90.00</float>
                                                    <action id="setBool">
                                                        <string id="id">BuildSpecial?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                        </condition>
                        <condition id="getBool">
                            <string id="id">TriggerStunRush?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="setBool">
                                <string id="id">TriggerStunRush?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                            <action id="setBool">
                                <string id="id">Rushing?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <action id="setCounterValue">
                                <string id="id">RushingPhase?</string>
                                <int id="value">0</int>
                            </action>
                            <action id="setBool">
                                <string id="id">StunRush?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                        </condition>
                        <condition id="getBool">
                            <string id="id">TriggerRangedRush?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="setBool">
                                <string id="id">TriggerRangedRush?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                            <action id="setBool">
                                <string id="id">Rushing?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <action id="setCounterValue">
                                <string id="id">RushingPhase?</string>
                                <int id="value">0</int>
                            </action>
                            <action id="setBool">
                                <string id="id">RangedRush?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                        </condition>
                        <condition id="getBool">
                            <string id="id">TriggerRegularRush?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="setBool">
                                <string id="id">TriggerRegularRush?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                            <action id="setBool">
                                <string id="id">Rushing?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <action id="setCounterValue">
                                <string id="id">RushingPhase?</string>
                                <int id="value">0</int>
                            </action>
                            <action id="setBool">
                                <string id="id">RegularRush?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                        </condition>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="timer">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.20</float>
            <condition id="getBool">
                <string id="id">SWITCHES HANDLING TREE</string>
                <string id="value" values="yesno">no</string>
                <condition id="getBool">
                    <string id="id">UNIT BUILDING SWITCHES</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="getBool">
                        <string id="id">BuildRanged?</string>
                        <string id="value" values="yesno">yes</string>
                        <condition id="getBool">
                            <string id="id">RangedUpgradeDone?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="createUnit">
                                <string id="unitType" values="enemies">VikingRanged</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">BuildRanged?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                        </condition>
                        <condition id="goldAmount">
                            <string id="ownGoldAmount" values="yesno">yes</string>
                            <string id="logic" values="unitcountlogic">greater</string>
                            <int id="amount">96</int>
                            <condition id="getBool">
                                <string id="id">RangedUpgradeDone?</string>
                                <string id="value" values="yesno">no</string>
                                <action id="incrementCounter">
                                    <string id="id">RangedUpgrade</string>
                                </action>
                                <action id="setBool">
                                    <string id="id">NOT</string>
                                    <string id="value" values="yesno">no</string>
                                </action>
                                <action id="addMoney">
                                    <float id="Amount">-10.00</float>
                                    <string id="Team" values="teams">ownTeam</string>
                                </action>
                                <condition id="counter">
                                    <string id="id">RangedUpgrade</string>
                                    <int id="count">7</int>
                                    <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="setBool">
                                        <string id="id">RangedUpgradeDone?</string>
                                        <string id="value" values="yesno">yes</string>
                                    </action>
                                </condition>
                            </condition>
                        </condition>
                    </condition>
                    <condition id="getBool">
                        <string id="id">BuildStun?</string>
                        <string id="value" values="yesno">yes</string>
                        <condition id="getBool">
                            <string id="id">StunUpgradeDone?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="createUnit">
                                <string id="unitType" values="enemies">VikingHammer</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">BuildStun?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                        </condition>
                        <condition id="goldAmount">
                            <string id="ownGoldAmount" values="yesno">yes</string>
                            <string id="logic" values="unitcountlogic">greater</string>
                            <int id="amount">96</int>
                            <condition id="getBool">
                                <string id="id">SafeToUpgrade?</string>
                                <string id="value" values="yesno">yes</string>
                                <condition id="getBool">
                                    <string id="id">StunUpgradeDone?</string>
                                    <string id="value" values="yesno">no</string>
                                    <action id="incrementCounter">
                                        <string id="id">StunUpgrade</string>
                                    </action>
                                    <action id="setBool">
                                        <string id="id">NOT</string>
                                        <string id="value" values="yesno">no</string>
                                    </action>
                                    <action id="addMoney">
                                        <float id="Amount">-6.00</float>
                                        <string id="Team" values="teams">ownTeam</string>
                                    </action>
                                    <condition id="counter">
                                        <string id="id">StunUpgrade</string>
                                        <int id="count">14</int>
                                        <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="setBool">
                                            <string id="id">StunUpgradeDone?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                </condition>
                            </condition>
                        </condition>
                    </condition>
                    <condition id="getBool">
                        <string id="id">BuildSpecial?</string>
                        <string id="value" values="yesno">yes</string>
                        <condition id="getBool">
                            <string id="id">SpecialUpgradeDone?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="createUnit">
                                <string id="unitType" values="enemies">VikingCatapult</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">BuildSpecial?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                        </condition>
                        <condition id="unitCount">
                            <string id="unitType" values="enemies">VikingWorker</string>
                            <string id="logic" values="unitcountlogic">greater</string>
                            <string id="ownUnits" values="yesno">yes</string>
                            <int id="unitCount">3</int>
                            <condition id="goldAmount">
                                <string id="ownGoldAmount" values="yesno">yes</string>
                                <string id="logic" values="unitcountlogic">greater</string>
                                <int id="amount">96</int>
                                <condition id="getBool">
                                    <string id="id">SafeToUpgrade?</string>
                                    <string id="value" values="yesno">yes</string>
                                    <condition id="getBool">
                                        <string id="id">SpecialUpgradeDone?</string>
                                        <string id="value" values="yesno">no</string>
                                        <action id="incrementCounter">
                                            <string id="id">SpecialUpgrade</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">NOT</string>
                                            <string id="value" values="yesno">no</string>
                                        </action>
                                        <condition id="counter">
                                            <string id="id">SpecialUpgrade</string>
                                            <int id="count">12</int>
                                            <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="setBool">
                                                <string id="id">SpecialUpgradeDone?</string>
                                                <string id="value" values="yesno">yes</string>
                                            </action>
                                        </condition>
                                        <action id="addMoney">
                                            <float id="Amount">-8.00</float>
                                            <string id="Team" values="teams">ownTeam</string>
                                        </action>
                                    </condition>
                                </condition>
                            </condition>
                        </condition>
                    </condition>
                    <condition id="getBool">
                        <string id="id">BuildMelee?</string>
                        <string id="value" values="yesno">yes</string>
                        <condition id="getBool">
                            <string id="id">MeleeUpgradeDone?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="createUnit">
                                <string id="unitType" values="enemies">VikingMelee</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">BuildMelee?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                        </condition>
                        <condition id="goldAmount">
                            <string id="ownGoldAmount" values="yesno">yes</string>
                            <string id="logic" values="unitcountlogic">greater</string>
                            <int id="amount">96</int>
                            <condition id="getBool">
                                <string id="id">MeleeUpgradeDone?</string>
                                <string id="value" values="yesno">no</string>
                                <action id="incrementCounter">
                                    <string id="id">MeleeUpgrade</string>
                                </action>
                                <action id="setBool">
                                    <string id="id">NOT</string>
                                    <string id="value" values="yesno">no</string>
                                </action>
                                <condition id="counter">
                                    <string id="id">MeleeUpgrade</string>
                                    <int id="count">6</int>
                                    <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="setBool">
                                        <string id="id">MeleeUpgradeDone?</string>
                                        <string id="value" values="yesno">yes</string>
                                    </action>
                                </condition>
                                <action id="addMoney">
                                    <float id="Amount">-8.00</float>
                                    <string id="Team" values="teams">ownTeam</string>
                                </action>
                            </condition>
                        </condition>
                    </condition>
                    <condition id="getBool">
                        <string id="id">BuildAWorker?</string>
                        <string id="value" values="yesno">yes</string>
                        <condition id="unitCount">
                            <string id="unitType" values="enemies">VikingWorker</string>
                            <string id="logic" values="unitcountlogic">lesser</string>
                            <string id="ownUnits" values="yesno">yes</string>
                            <int id="unitCount">4</int>
                            <action id="createUnit">
                                <string id="unitType" values="enemies">VikingWorker</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">BuildAWorker?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                        </condition>
                        <condition id="getBool">
                            <string id="id">SafeToUpgrade?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="createUnit">
                                <string id="unitType" values="enemies">VikingWorker</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">BuildAWorker?</string>
                                <string id="value" values="yesno">no</string>
                            </action>
                        </condition>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">PHASE SWITCHES</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="getBool">
                        <string id="id">Countering?</string>
                        <string id="value" values="yesno">no</string>
                        <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">72.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>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="timer">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.30</float>
            <condition id="getBool">
                <string id="id">SPECIAL OPS TREE</string>
                <string id="value" values="yesno">no</string>
                <condition id="getBool">
                    <string id="id">SPELLS SUBTREE</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="timer">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">1.00</float>
                        <condition id="timePassed">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">20.00</float>
                            <action id="addMana">
                                <float id="Amount">1.00</float>
                                <string id="Team" values="teams">ownTeam</string>
                            </action>
                        </condition>
                        <condition id="timePassed">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">45.00</float>
                            <action id="addMana">
                                <float id="Amount">1.00</float>
                                <string id="Team" values="teams">ownTeam</string>
                            </action>
                        </condition>
                        <condition id="timePassed">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">90.00</float>
                            <action id="addMana">
                                <float id="Amount">1.00</float>
                                <string id="Team" values="teams">ownTeam</string>
                            </action>
                        </condition>
                        <condition id="timePassed">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">180.00</float>
                            <action id="addMana">
                                <float id="Amount">1.00</float>
                                <string id="Team" values="teams">ownTeam</string>
                            </action>
                        </condition>
                    </condition>
                    <condition id="getBool">
                        <string id="id">Rushing?</string>
                        <string id="value" values="yesno">yes</string>
                        <condition id="timePassed">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">35.00</float>
                            <condition id="getBool">
                                <string id="id">StunRush?</string>
                                <string id="value" values="yesno">yes</string>
                                <action id="useAbility">
                                    <string id="abilityType" values="abilities">VikingHeal</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">no</string>
                                </action>
                            </condition>
                            <condition id="getBool">
                                <string id="id">RegularRush?</string>
                                <string id="value" values="yesno">yes</string>
                                <condition id="getBool">
                                    <string id="id">RushAbilityDone?</string>
                                    <string id="value" values="yesno">no</string>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">AsianInstantKiller</string>
                                        <string id="logic" values="unitcountlogic">greater</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">0</int>
                                        <action id="useAbility">
                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                            <string id="unitType" values="enemies">AsianInstantKiller</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">no</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">RushAbilityDone?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">AsianNinja</string>
                                        <string id="logic" values="unitcountlogic">greater</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">0</int>
                                        <action id="useAbility">
                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                            <string id="unitType" values="enemies">AsianNinja</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">no</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">RushAbilityDone?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                    <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>
                                        <action id="useAbility">
                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                            <string id="unitType" values="enemies">AztecNecromancer</string>
                                            <string id="target" values="targets">LowestHealth</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">no</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">RushAbilityDone?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                    <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">0</int>
                                        <action id="useAbility">
                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                            <string id="unitType" values="enemies">VikingCatapult</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">no</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">RushAbilityDone?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                </condition>
                                <condition id="getBool">
                                    <string id="id">RushAbilityDone?</string>
                                    <string id="value" values="yesno">no</string>
                                    <action id="useAbility">
                                        <string id="abilityType" values="abilities">VikingHaste</string>
                                        <string id="unitType" values="enemies">ANY</string>
                                        <string id="target" values="targets">BackMilitaryUnit</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">no</string>
                                    </action>
                                </condition>
                                <action id="setBool">
                                    <string id="id">RushAbilityDone?</string>
                                    <string id="value" values="yesno">no</string>
                                </action>
                            </condition>
                            <condition id="getBool">
                                <string id="id">RangedRush?</string>
                                <string id="value" values="yesno">yes</string>
                                <condition id="getBool">
                                    <string id="id">RushAbilityDone?</string>
                                    <string id="value" values="yesno">no</string>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">AsianInstantKiller</string>
                                        <string id="logic" values="unitcountlogic">greater</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">0</int>
                                        <action id="useAbility">
                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                            <string id="unitType" values="enemies">AsianInstantKiller</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">no</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">RushAbilityDone?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                    <condition id="unitCount">
                                        <string id="unitType" values="enemies">AsianNinja</string>
                                        <string id="logic" values="unitcountlogic">greater</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <int id="unitCount">0</int>
                                        <action id="useAbility">
                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                            <string id="unitType" values="enemies">AsianNinja</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">no</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">RushAbilityDone?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                    <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>
                                        <action id="useAbility">
                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                            <string id="unitType" values="enemies">AztecNecromancer</string>
                                            <string id="target" values="targets">LowestHealth</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">no</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">RushAbilityDone?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                    <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">0</int>
                                        <action id="useAbility">
                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                            <string id="unitType" values="enemies">VikingCatapult</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">no</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">RushAbilityDone?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                </condition>
                                <condition id="getBool">
                                    <string id="id">RushAbilityDone?</string>
                                    <string id="value" values="yesno">no</string>
                                    <action id="useAbility">
                                        <string id="abilityType" values="abilities">VikingHaste</string>
                                        <string id="unitType" values="enemies">ANY</string>
                                        <string id="target" values="targets">BackMilitaryUnit</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">no</string>
                                    </action>
                                </condition>
                                <action id="setBool">
                                    <string id="id">RushAbilityDone?</string>
                                    <string id="value" values="yesno">no</string>
                                </action>
                            </condition>
                        </condition>
                    </condition>
                    <condition id="getBool">
                        <string id="id">Rushing?</string>
                        <string id="value" values="yesno">no</string>
                        <condition id="timePassed">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">15.00</float>
                            <condition id="getBool">
                                <string id="id">SPELL SAVING HANDLER</string>
                                <string id="value" values="yesno">no</string>
                                <condition id="getBool">
                                    <string id="id">SavingForBigSpell?</string>
                                    <string id="value" values="yesno">no</string>
                                    <action id="setBool">
                                        <string id="id">DoSmallSpell?</string>
                                        <string id="value" values="yesno">yes</string>
                                    </action>
                                    <condition id="timePassed">
                                        <string id="timeunit" values="timeunits">seconds</string>
                                        <float id="time">120.00</float>
                                        <condition id="random">
                                            <int id="amount">15</int>
                                            <action id="setBool">
                                                <string id="id">SavingForBigSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                            </action>
                                        </condition>
                                    </condition>
                                </condition>
                                <condition id="getBool">
                                    <string id="id">SavingForBigSpell?</string>
                                    <string id="value" values="yesno">yes</string>
                                    <condition id="getBool">
                                        <string id="id">BigSpellDone?</string>
                                        <string id="value" values="yesno">no</string>
                                        <action id="setBool">
                                            <string id="id">DoBigSpell?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                    </condition>
                                    <condition id="getBool">
                                        <string id="id">BigSpellDone?</string>
                                        <string id="value" values="yesno">yes</string>
                                        <action id="setBool">
                                            <string id="id">SavingForBigSpell?</string>
                                            <string id="value" values="yesno">no</string>
                                        </action>
                                        <action id="setBool">
                                            <string id="id">BigSpellDone?</string>
                                            <string id="value" values="yesno">no</string>
                                        </action>
                                    </condition>
                                </condition>
                            </condition>
                            <condition id="getBool">
                                <string id="id">SPELL TACTICS SWITCHER</string>
                                <string id="value" values="yesno">no</string>
                                <condition id="getBool">
                                    <string id="id">DO SWITCHING</string>
                                    <string id="value" values="yesno">no</string>
                                    <action id="incrementCounter">
                                        <string id="id">DoingTactic</string>
                                    </action>
                                    <action id="setBool">
                                        <string id="id">NOT</string>
                                        <string id="value" values="yesno">no</string>
                                    </action>
                                    <condition id="counter">
                                        <string id="id">DoingTactic</string>
                                        <int id="count">40</int>
                                        <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>
                                        <condition id="getBool">
                                            <string id="id">DoBigSpell?</string>
                                            <string id="value" values="yesno">no</string>
                                            <condition id="random">
                                                <int id="amount">25</int>
                                                <action id="setBool">
                                                    <string id="id">NOT</string>
                                                    <string id="value" values="yesno">no</string>
                                                </action>
                                                <condition id="getBool">
                                                    <string id="id">SpellTactic1?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                    <action id="setBool">
                                                        <string id="id">SpellTactic2?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">SpellTactic1?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                    <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>
                                                    <condition id="getBool">
                                                        <string id="id">SpellTactic2?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                        <action id="setBool">
                                                            <string id="id">SpellTactic1?</string>
                                                            <string id="value" values="yesno">yes</string>
                                                        </action>
                                                        <action id="setBool">
                                                            <string id="id">SpellTactic2?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                    </condition>
                                                </condition>
                                                <action id="setCounterValue">
                                                    <string id="id">DoingTactic</string>
                                                    <int id="value">0</int>
                                                </action>
                                            </condition>
                                            <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">1</int>
                                                <condition id="random">
                                                    <int id="amount">2</int>
                                                    <condition id="getBool">
                                                        <string id="id">SpellTactic2?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                        <action id="setBool">
                                                            <string id="id">SpellTactic1?</string>
                                                            <string id="value" values="yesno">yes</string>
                                                        </action>
                                                        <action id="setBool">
                                                            <string id="id">SpellTactic2?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                    </condition>
                                                </condition>
                                            </condition>
                                            <condition id="unitCount">
                                                <string id="unitType" values="enemies">AsianInstantKiller</string>
                                                <string id="logic" values="unitcountlogic">greater</string>
                                                <string id="ownUnits" values="yesno">no</string>
                                                <int id="unitCount">1</int>
                                                <condition id="random">
                                                    <int id="amount">2</int>
                                                    <condition id="getBool">
                                                        <string id="id">SpellTactic2?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                        <action id="setBool">
                                                            <string id="id">SpellTactic1?</string>
                                                            <string id="value" values="yesno">yes</string>
                                                        </action>
                                                        <action id="setBool">
                                                            <string id="id">SpellTactic2?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                    </condition>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                    <condition id="getBool">
                                        <string id="id">SafeToUpgrade?</string>
                                        <string id="value" values="yesno">no</string>
                                        <condition id="getBool">
                                            <string id="id">SpellTactic1?</string>
                                            <string id="value" values="yesno">yes</string>
                                            <condition id="getBool">
                                                <string id="id">DoBigSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                                <condition id="getBool">
                                                    <string id="id">BigSpell1Upgraded?</string>
                                                    <string id="value" values="yesno">no</string>
                                                    <action id="setBool">
                                                        <string id="id">DoBigSpell?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">SavingForBigSpell?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                            <condition id="getBool">
                                                <string id="id">DoSmallSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                                <condition id="getBool">
                                                    <string id="id">SmallSpell1Upgraded?</string>
                                                    <string id="value" values="yesno">no</string>
                                                    <condition id="getBool">
                                                        <string id="id">SmallSpell2Upgraded?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                        <action id="setBool">
                                                            <string id="id">SpellTactic1?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                        <action id="setBool">
                                                            <string id="id">SpellTactic2?</string>
                                                            <string id="value" values="yesno">yes</string>
                                                        </action>
                                                    </condition>
                                                </condition>
                                            </condition>
                                        </condition>
                                        <condition id="getBool">
                                            <string id="id">SpellTactic2?</string>
                                            <string id="value" values="yesno">yes</string>
                                            <condition id="getBool">
                                                <string id="id">DoBigSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                                <condition id="getBool">
                                                    <string id="id">BigSpell1Upgraded?</string>
                                                    <string id="value" values="yesno">no</string>
                                                    <action id="setBool">
                                                        <string id="id">DoBigSpell?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">SavingForBigSpell?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                            <condition id="getBool">
                                                <string id="id">DoSmallSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                                <condition id="getBool">
                                                    <string id="id">SmallSpell1Upgraded?</string>
                                                    <string id="value" values="yesno">no</string>
                                                    <action id="setBool">
                                                        <string id="id">SpellTactic1?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">SpellTactic2?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                                <condition id="getBool">
                                    <string id="id">SpellTactic1?</string>
                                    <string id="value" values="yesno">no</string>
                                    <condition id="getBool">
                                        <string id="id">SpellTactic2?</string>
                                        <string id="value" values="yesno">no</string>
                                        <action id="setBool">
                                            <string id="id">SpellTactic1?</string>
                                            <string id="value" values="yesno">yes</string>
                                        </action>
                                        <condition id="random">
                                            <int id="amount">2</int>
                                            <action id="setBool">
                                                <string id="id">SpellTactic2?</string>
                                                <string id="value" values="yesno">yes</string>
                                            </action>
                                            <action id="setBool">
                                                <string id="id">SpellTactic1?</string>
                                                <string id="value" values="yesno">no</string>
                                            </action>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                            <condition id="getBool">
                                <string id="id">SPELL CASTING</string>
                                <string id="value" values="yesno">no</string>
                                <condition id="getBool">
                                    <string id="id">SpellTactic1?</string>
                                    <string id="value" values="yesno">yes</string>
                                    <condition id="getBool">
                                        <string id="id">DoSmallSpell?</string>
                                        <string id="value" values="yesno">yes</string>
                                        <condition id="getBool">
                                            <string id="id">SmallSpell1Upgraded?</string>
                                            <string id="value" values="yesno">no</string>
                                            <condition id="goldAmount">
                                                <string id="ownGoldAmount" values="yesno">yes</string>
                                                <string id="logic" values="unitcountlogic">greater</string>
                                                <int id="amount">96</int>
                                                <action id="incrementCounter">
                                                    <string id="id">SmallSpell1Upgrade</string>
                                                </action>
                                                <action id="setBool">
                                                    <string id="id">NOT</string>
                                                    <string id="value" values="yesno">no</string>
                                                </action>
                                                <action id="addMoney">
                                                    <float id="Amount">-10.00</float>
                                                    <string id="Team" values="teams">ownTeam</string>
                                                </action>
                                                <condition id="counter">
                                                    <string id="id">SmallSpell1Upgrade</string>
                                                    <int id="count">4</int>
                                                    <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="setBool">
                                                        <string id="id">SmallSpell1Upgraded?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                        <condition id="getBool">
                                            <string id="id">SmallSpell1Upgraded?</string>
                                            <string id="value" values="yesno">yes</string>
                                            <condition id="getBool">
                                                <string id="id">DoSmallSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                                <condition id="unitCount">
                                                    <string id="unitType" values="enemies">AsianInstantKiller</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">AsianInstantKiller;;</string>
                                                        <string id="rangeType" values="offsetsFromBase">percentual</string>
                                                        <float id="range">35.00</float>
                                                        <string id="ownUnits" values="yesno">no</string>
                                                        <condition id="random">
                                                            <int id="amount">2</int>
                                                            <action id="useAbility">
                                                                <string id="abilityType" values="abilities">VikingLightning</string>
                                                                <string id="unitType" values="enemies">AsianInstantKiller</string>
                                                                <string id="target" values="targets">LowestHealth</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">no</string>
                                                            </action>
                                                            <action id="setBool">
                                                                <string id="id">DoSmallSpell?</string>
                                                                <string id="value" values="yesno">no</string>
                                                            </action>
                                                        </condition>
                                                    </condition>
                                                    <condition id="random">
                                                        <int id="amount">4</int>
                                                        <action id="useAbility">
                                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                                            <string id="unitType" values="enemies">AsianInstantKiller</string>
                                                            <string id="target" values="targets">LowestHealth</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">no</string>
                                                        </action>
                                                        <action id="setBool">
                                                            <string id="id">DoSmallSpell?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                    </condition>
                                                    <condition id="unitCount">
                                                        <string id="unitType" values="enemies">AsianInstantKiller</string>
                                                        <string id="logic" values="unitcountlogic">greater</string>
                                                        <string id="ownUnits" values="yesno">no</string>
                                                        <int id="unitCount">3</int>
                                                        <action id="useAbility">
                                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                                            <string id="unitType" values="enemies">AsianInstantKiller</string>
                                                            <string id="target" values="targets">LowestHealth</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">no</string>
                                                        </action>
                                                        <action id="setBool">
                                                            <string id="id">DoSmallSpell?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                    </condition>
                                                </condition>
                                            </condition>
                                            <condition id="getBool">
                                                <string id="id">DoSmallSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                                <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">35.00</float>
                                                        <string id="ownUnits" values="yesno">no</string>
                                                        <condition id="random">
                                                            <int id="amount">2</int>
                                                            <action id="useAbility">
                                                                <string id="abilityType" values="abilities">VikingLightning</string>
                                                                <string id="unitType" values="enemies">AztecNecromancer</string>
                                                                <string id="target" values="targets">LowestHealth</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">no</string>
                                                            </action>
                                                            <action id="setBool">
                                                                <string id="id">DoSmallSpell?</string>
                                                                <string id="value" values="yesno">no</string>
                                                            </action>
                                                        </condition>
                                                    </condition>
                                                    <condition id="random">
                                                        <int id="amount">4</int>
                                                        <action id="useAbility">
                                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                                            <string id="unitType" values="enemies">AztecNecromancer</string>
                                                            <string id="target" values="targets">LowestHealth</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">no</string>
                                                        </action>
                                                        <action id="setBool">
                                                            <string id="id">DoSmallSpell?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                    </condition>
                                                    <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">3</int>
                                                        <action id="useAbility">
                                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                                            <string id="unitType" values="enemies">AztecNecromancer</string>
                                                            <string id="target" values="targets">LowestHealth</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">no</string>
                                                        </action>
                                                        <action id="setBool">
                                                            <string id="id">DoSmallSpell?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                    </condition>
                                                </condition>
                                            </condition>
                                            <condition id="getBool">
                                                <string id="id">DoSmallSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                                <condition id="unitCount">
                                                    <string id="unitType" values="enemies">AsianNinja</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">AsianNinja;;</string>
                                                        <string id="rangeType" values="offsetsFromBase">percentual</string>
                                                        <float id="range">35.00</float>
                                                        <string id="ownUnits" values="yesno">no</string>
                                                        <condition id="random">
                                                            <int id="amount">2</int>
                                                            <action id="useAbility">
                                                                <string id="abilityType" values="abilities">VikingLightning</string>
                                                                <string id="unitType" values="enemies">AztecNecromancer</string>
                                                                <string id="target" values="targets">LowestHealth</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">no</string>
                                                            </action>
                                                            <action id="setBool">
                                                                <string id="id">DoSmallSpell?</string>
                                                                <string id="value" values="yesno">no</string>
                                                            </action>
                                                        </condition>
                                                    </condition>
                                                    <condition id="random">
                                                        <int id="amount">4</int>
                                                        <action id="useAbility">
                                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                                            <string id="unitType" values="enemies">AztecNecromancer</string>
                                                            <string id="target" values="targets">LowestHealth</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">no</string>
                                                        </action>
                                                        <action id="setBool">
                                                            <string id="id">DoSmallSpell?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                    </condition>
                                                    <condition id="unitCount">
                                                        <string id="unitType" values="enemies">AsianNinja</string>
                                                        <string id="logic" values="unitcountlogic">greater</string>
                                                        <string id="ownUnits" values="yesno">no</string>
                                                        <int id="unitCount">3</int>
                                                        <action id="useAbility">
                                                            <string id="abilityType" values="abilities">VikingLightning</string>
                                                            <string id="unitType" values="enemies">AztecNecromancer</string>
                                                            <string id="target" values="targets">LowestHealth</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">no</string>
                                                        </action>
                                                        <action id="setBool">
                                                            <string id="id">DoSmallSpell?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                    </condition>
                                                </condition>
                                            </condition>
                                            <condition id="getBool">
                                                <string id="id">DoSmallSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                                <condition id="random">
                                                    <int id="amount">2</int>
                                                    <action id="useAbility">
                                                        <string id="abilityType" values="abilities">VikingHeal</string>
                                                        <string id="unitType" values="enemies">ANY</string>
                                                        <string id="target" values="targets">BackMilitaryUnit</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">no</string>
                                                    </action>
                                                </condition>
                                                <action id="setBool">
                                                    <string id="id">DoSmallSpell?</string>
                                                    <string id="value" values="yesno">no</string>
                                                </action>
                                            </condition>
                                        </condition>
                                    </condition>
                                    <condition id="getBool">
                                        <string id="id">DoBigSpell?</string>
                                        <string id="value" values="yesno">yes</string>
                                        <condition id="getBool">
                                            <string id="id">BigSpell1Upgraded?</string>
                                            <string id="value" values="yesno">no</string>
                                            <condition id="goldAmount">
                                                <string id="ownGoldAmount" values="yesno">yes</string>
                                                <string id="logic" values="unitcountlogic">greater</string>
                                                <int id="amount">96</int>
                                                <condition id="getBool">
                                                    <string id="id">SafeToUpgrade?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                    <action id="incrementCounter">
                                                        <string id="id">BigSpell1Upgrade</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">NOT</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                    <action id="addMoney">
                                                        <float id="Amount">-10.00</float>
                                                        <string id="Team" values="teams">ownTeam</string>
                                                    </action>
                                                    <condition id="counter">
                                                        <string id="id">BigSpell1Upgrade</string>
                                                        <int id="count">15</int>
                                                        <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="setBool">
                                                            <string id="id">BigSpell1Upgraded?</string>
                                                            <string id="value" values="yesno">yes</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>
                                                        <action id="setBool">
                                                            <string id="id">DoBigSpell?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                    </condition>
                                                </condition>
                                            </condition>
                                        </condition>
                                        <condition id="getBool">
                                            <string id="id">BigSpell1Upgraded?</string>
                                            <string id="value" values="yesno">yes</string>
                                            <condition id="manaAmount">
                                                <string id="ownManaAmount" values="yesno">yes</string>
                                                <string id="logic" values="unitcountlogic">greater</string>
                                                <int id="amount">250</int>
                                                <condition id="getBool">
                                                    <string id="id">BigSpellDone?</string>
                                                    <string id="value" values="yesno">no</string>
                                                    <action id="useAbility">
                                                        <string id="abilityType" values="abilities">VikingHammerOfThor</string>
                                                        <string id="unitType" values="enemies">AsianRanged</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">no</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">BigSpellDone?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">DoBigSpell?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                </condition>
                                                <condition id="getBool">
                                                    <string id="id">BigSpellDone?</string>
                                                    <string id="value" values="yesno">no</string>
                                                    <action id="useAbility">
                                                        <string id="abilityType" values="abilities">VikingHammerOfThor</string>
                                                        <string id="unitType" values="enemies">AztecGiant</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">no</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">BigSpellDone?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">DoBigSpell?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                </condition>
                                                <condition id="getBool">
                                                    <string id="id">BigSpellDone?</string>
                                                    <string id="value" values="yesno">no</string>
                                                    <action id="useAbility">
                                                        <string id="abilityType" values="abilities">VikingHammerOfThor</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">no</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">BigSpellDone?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">DoBigSpell?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                            <condition id="unitCount">
                                                <string id="unitType" values="enemies">ANY</string>
                                                <string id="logic" values="unitcountlogic">lesser</string>
                                                <string id="ownUnits" values="yesno">no</string>
                                                <int id="unitCount">18</int>
                                                <action id="setBool">
                                                    <string id="id">BigSpellDone?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <action id="setBool">
                                                    <string id="id">DoBigSpell?</string>
                                                    <string id="value" values="yesno">no</string>
                                                </action>
                                            </condition>
                                            <condition id="manaAmount">
                                                <string id="ownManaAmount" values="yesno">yes</string>
                                                <string id="logic" values="unitcountlogic">lesser</string>
                                                <int id="amount">140</int>
                                                <action id="setBool">
                                                    <string id="id">BigSpellDone?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <action id="setBool">
                                                    <string id="id">DoBigSpell?</string>
                                                    <string id="value" values="yesno">no</string>
                                                </action>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                                <condition id="getBool">
                                    <string id="id">SpellTactic2?</string>
                                    <string id="value" values="yesno">yes</string>
                                    <condition id="getBool">
                                        <string id="id">DoSmallSpell?</string>
                                        <string id="value" values="yesno">yes</string>
                                        <condition id="getBool">
                                            <string id="id">SmallSpell2Upgraded?</string>
                                            <string id="value" values="yesno">no</string>
                                            <condition id="goldAmount">
                                                <string id="ownGoldAmount" values="yesno">yes</string>
                                                <string id="logic" values="unitcountlogic">greater</string>
                                                <int id="amount">96</int>
                                                <condition id="getBool">
                                                    <string id="id">SafeToUpgrade?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                    <action id="incrementCounter">
                                                        <string id="id">SmallSpell2Upgrade</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">NOT</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                    <action id="addMoney">
                                                        <float id="Amount">-10.00</float>
                                                        <string id="Team" values="teams">ownTeam</string>
                                                    </action>
                                                    <condition id="counter">
                                                        <string id="id">SmallSpell2Upgrade</string>
                                                        <int id="count">4</int>
                                                        <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="setBool">
                                                            <string id="id">SmallSpell2Upgraded?</string>
                                                            <string id="value" values="yesno">yes</string>
                                                        </action>
                                                    </condition>
                                                </condition>
                                            </condition>
                                        </condition>
                                        <condition id="getBool">
                                            <string id="id">SmallSpell2Upgraded?</string>
                                            <string id="value" values="yesno">yes</string>
                                            <condition id="getBool">
                                                <string id="id">DoSmallSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                                <condition id="random">
                                                    <int id="amount">5</int>
                                                    <action id="useAbility">
                                                        <string id="abilityType" values="abilities">VikingHeal</string>
                                                        <string id="unitType" values="enemies">ANY</string>
                                                        <string id="target" values="targets">LowestHealth</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">no</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">DoSmallSpell?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                            <condition id="getBool">
                                                <string id="id">DoSmallSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                                <condition id="random">
                                                    <int id="amount">4</int>
                                                    <action id="useAbility">
                                                        <string id="abilityType" values="abilities">VikingHaste</string>
                                                        <string id="unitType" values="enemies">ANY</string>
                                                        <string id="target" values="targets">LowestHealth</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">no</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">DoSmallSpell?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                            <condition id="getBool">
                                                <string id="id">DoSmallSpell?</string>
                                                <string id="value" values="yesno">yes</string>
                                                <action id="useAbility">
                                                    <string id="abilityType" values="abilities">VikingHaste</string>
                                                    <string id="unitType" values="enemies">ANY</string>
                                                    <string id="target" values="targets">BackMilitaryUnit</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">no</string>
                                                </action>
                                                <action id="setBool">
                                                    <string id="id">DoSmallSpell?</string>
                                                    <string id="value" values="yesno">no</string>
                                                </action>
                                            </condition>
                                        </condition>
                                    </condition>
                                    <condition id="getBool">
                                        <string id="id">DoBigSpell?</string>
                                        <string id="value" values="yesno">yes</string>
                                        <condition id="getBool">
                                            <string id="id">BigSpell2Upgraded?</string>
                                            <string id="value" values="yesno">no</string>
                                            <condition id="goldAmount">
                                                <string id="ownGoldAmount" values="yesno">yes</string>
                                                <string id="logic" values="unitcountlogic">greater</string>
                                                <int id="amount">96</int>
                                                <condition id="getBool">
                                                    <string id="id">SafeToUpgrade?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                    <action id="incrementCounter">
                                                        <string id="id">BigSpell2Upgrade</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">NOT</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                    <action id="addMoney">
                                                        <float id="Amount">-10.00</float>
                                                        <string id="Team" values="teams">ownTeam</string>
                                                    </action>
                                                    <condition id="counter">
                                                        <string id="id">BigSpell2Upgrade</string>
                                                        <int id="count">15</int>
                                                        <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="setBool">
                                                            <string id="id">BigSpell2Upgraded?</string>
                                                            <string id="value" values="yesno">yes</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>
                                                        <action id="setBool">
                                                            <string id="id">DoBigSpell?</string>
                                                            <string id="value" values="yesno">no</string>
                                                        </action>
                                                    </condition>
                                                </condition>
                                            </condition>
                                        </condition>
                                        <condition id="getBool">
                                            <string id="id">BigSpell2Upgraded?</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">no</string>
                                                <int id="unitCount">18</int>
                                                <action id="setBool">
                                                    <string id="id">BigSpellDone?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <action id="setBool">
                                                    <string id="id">DoBigSpell?</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">lesser</string>
                                                <string id="ownUnits" values="yesno">yes</string>
                                                <int id="unitCount">18</int>
                                                <action id="setBool">
                                                    <string id="id">BigSpellDone?</string>
                                                    <string id="value" values="yesno">yes</string>
                                                </action>
                                                <action id="setBool">
                                                    <string id="id">DoBigSpell?</string>
                                                    <string id="value" values="yesno">no</string>
                                                </action>
                                            </condition>
                                            <condition id="getBool">
                                                <string id="id">BigSpellDone?</string>
                                                <string id="value" values="yesno">no</string>
                                                <condition id="manaAmount">
                                                    <string id="ownManaAmount" values="yesno">yes</string>
                                                    <string id="logic" values="unitcountlogic">greater</string>
                                                    <int id="amount">100</int>
                                                    <action id="useAbility">
                                                        <string id="abilityType" values="abilities">VikingSnowstorm</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">no</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">BigSpellDone?</string>
                                                        <string id="value" values="yesno">yes</string>
                                                    </action>
                                                    <action id="setBool">
                                                        <string id="id">DoBigSpell?</string>
                                                        <string id="value" values="yesno">no</string>
                                                    </action>
                                                </condition>
                                            </condition>
                                        </condition>
                                    </condition>
                                </condition>
                            </condition>
                        </condition>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">SAFETY CHECK</string>
                    <string id="value" values="yesno">no</string>
                    <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">30.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>
                        <action id="setBool">
                            <string id="id">SafeToUpgrade?</string>
                            <string id="value" values="yesno">no</string>
                        </action>
                    </condition>
                    <condition id="getBool">
                        <string id="id">NOT</string>
                        <string id="value" values="yesno">no</string>
                        <action id="setBool">
                            <string id="id">SafeToUpgrade?</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </condition>
                </condition>
                <condition id="timePassed">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">55.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">50.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>
                        <condition id="getBool">
                            <string id="id">RangedUpgradeDone?</string>
                            <string id="value" values="yesno">no</string>
                            <action id="setBool">
                                <string id="id">BuildRanged?</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                        </condition>
                        <condition id="getBool">
                            <string id="id">RangedUpgradeDone?</string>
                            <string id="value" values="yesno">yes</string>
                            <action id="createTower">
                                <string id="towerType" values="towers">VikingTower</string>
                                <string id="instantlyFinished" values="yesno">no</string>
                                <string id="cheat" values="yesno">no</string>
                                <string id="ignoreCooldown" values="yesno">no</string>
                            </action>
                        </condition>
                    </condition>
                </condition>
            </condition>
        </condition>
    </behaviour>
</enemy>
