<?xml version="1.0" ?>
<enemy>
    <behaviour>
        <condition id="timer">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.10</float>
            <condition id="getBool">
                <string id="id">dragonDone</string>
                <string id="value" values="yesno">yes</string>
                <condition id="getBool">
                    <string id="id">allSkeletonsDead</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="getBool">
                        <string id="id">dragon2</string>
                        <string id="value" values="yesno">yes</string>
                        <sequence>
                            <string id="Is blocking">yes</string>
                            <action id="showText">
                                <string id="Text identifier">lvl310c1_alldead</string>
                                <float id="Duration">8.00</float>
                                <string id="Texture">portrait_asianemperor</string>
                                <string id="Location" values="textLocation">left</string>
                            </action>
                            <action id="setButtonEnabled">
                                <string id="Button" values="buttons">AsianRangedUpgrade</string>
                                <string id="Team" values="teams">ownTeam</string>
                                <string id="Enabled" values="yesno">yes</string>
                            </action>
                            <action id="setButtonEnabled">
                                <string id="Button" values="buttons">AsianArrowRainUpgrade</string>
                                <string id="Team" values="teams">ownTeam</string>
                                <string id="Enabled" values="yesno">yes</string>
                            </action>
                            <action id="setButtonHighlighted">
                                <string id="Button" values="buttons">AsianArrowRainUpgrade</string>
                                <string id="Team" values="teams">ownTeam</string>
                                <string id="Highlighted" values="yesno">yes</string>
                            </action>
                            <action id="setButtonHighlighted">
                                <string id="Button" values="buttons">AsianRangedUpgrade</string>
                                <string id="Team" values="teams">ownTeam</string>
                                <string id="Highlighted" values="yesno">yes</string>
                            </action>
                            <action id="setBool">
                                <string id="id">allSkeletonsDead</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                        </sequence>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">allSkeletonsDead</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="getBool">
                        <string id="id">dragon2</string>
                        <string id="value" values="yesno">no</string>
                        <condition id="getBool">
                            <string id="id">dragonDone</string>
                            <string id="value" values="yesno">yes</string>
                            <condition id="unitNear">
                                <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
                                <string id="rangeType" values="offsetsFromBase">percentual</string>
                                <float id="range">20.00</float>
                                <string id="ownUnits" values="yesno">no</string>
                                <action id="setBool">
                                    <string id="id">unitsaanwezig</string>
                                    <string id="value" values="yesno">yes</string>
                                </action>
                            </condition>
                            <condition id="getBool">
                                <string id="id">unitsaanwezig</string>
                                <string id="value" values="yesno">yes</string>
                                <sequence>
                                    <string id="Is blocking">yes</string>
                                    <action id="setFreezeGame">
                                        <string id="Freeze game" values="yesno">yes</string>
                                        <string id="Freeze input" values="yesno">yes</string>
                                    </action>
                                    <action id="showText">
                                        <string id="Text identifier">lvl310b6_notalldead</string>
                                        <float id="Duration">8.00</float>
                                        <string id="Texture">portrait_asianemperor</string>
                                        <string id="Location" values="textLocation">left</string>
                                    </action>
                                    <action id="showText">
                                        <string id="Text identifier">lvl310b7_roarsure</string>
                                        <float id="Duration">8.00</float>
                                        <string id="Texture">portrait_dragon</string>
                                        <string id="Location" values="textLocation">left</string>
                                    </action>
                                    <action id="setFreezeGame">
                                        <string id="Freeze game" values="yesno">no</string>
                                        <string id="Freeze input" values="yesno">no</string>
                                    </action>
                                    <action id="wait">
                                        <string id="timeunit" values="timeunits">seconds</string>
                                        <float id="time">1.00</float>
                                    </action>
                                    <action id="useAbility">
                                        <string id="abilityType" values="abilities">AsianDragon</string>
                                        <string id="unitType" values="enemies">ANY</string>
                                        <string id="target" values="targets">FrontUnit</string>
                                        <string id="ownUnits" values="yesno">no</string>
                                        <string id="cheat" values="yesno">yes</string>
                                        <string id="ignoreCooldown" values="yesno">yes</string>
                                        <string id="ignoreFogOfWar" values="yesno">yes</string>
                                    </action>
                                    <action id="wait">
                                        <string id="timeunit" values="timeunits">seconds</string>
                                        <float id="time">1.00</float>
                                    </action>
                                </sequence>
                            </condition>
                            <action id="setBool">
                                <string id="id">dragon2</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                        </condition>
                    </condition>
                </condition>
            </condition>
            <condition id="getBool">
                <string id="id">highlightArrow</string>
                <string id="value" values="yesno">no</string>
                <condition id="buttonHasBeenClicked">
                    <string id="Button" values="buttons">AsianArrowRainUpgrade</string>
                    <string id="Team to check" values="teams">ownTeam</string>
                    <string id="HasBeenClicked" values="yesno">yes</string>
                    <sequence>
                        <string id="Is blocking">no</string>
                        <action id="setButtonHighlighted">
                            <string id="Button" values="buttons">AsianArrowRainUpgrade</string>
                            <string id="Team" values="teams">ownTeam</string>
                            <string id="Highlighted" values="yesno">no</string>
                        </action>
                        <action id="setBool">
                            <string id="id">highlightArrow</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </sequence>
                </condition>
            </condition>
            <condition id="getBool">
                <string id="id">highlightRockets</string>
                <string id="value" values="yesno">no</string>
                <condition id="buttonHasBeenClicked">
                    <string id="Button" values="buttons">AsianRangedUpgrade</string>
                    <string id="Team to check" values="teams">ownTeam</string>
                    <string id="HasBeenClicked" values="yesno">yes</string>
                    <sequence>
                        <string id="Is blocking">no</string>
                        <action id="setButtonHighlighted">
                            <string id="Button" values="buttons">AsianRangedUpgrade</string>
                            <string id="Team" values="teams">ownTeam</string>
                            <string id="Highlighted" values="yesno">no</string>
                        </action>
                        <action id="setBool">
                            <string id="id">highlightRockets</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </sequence>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">87.00</float>
            <condition id="unitCount">
                <string id="unitType" values="enemies">AztecSkeleton</string>
                <string id="logic" values="unitcountlogic">greater</string>
                <string id="ownUnits" values="yesno">no</string>
                <int id="unitCount">0</int>
                <condition id="getBool">
                    <string id="id">dragonDone</string>
                    <string id="value" values="yesno">no</string>
                    <sequence>
                        <string id="Is blocking">yes</string>
                        <action id="setFreezeGame">
                            <string id="Freeze game" values="yesno">yes</string>
                            <string id="Freeze input" values="yesno">yes</string>
                        </action>
                        <action id="wait">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">0.50</float>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl310b1_hisssburp</string>
                            <float id="Duration">8.00</float>
                            <string id="Texture">portrait_poekie</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl310b2_weredoomed</string>
                            <float id="Duration">8.00</float>
                            <string id="Texture">portrait_footsoldier</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl310b3_likewhat</string>
                            <float id="Duration">8.00</float>
                            <string id="Texture">portrait_asianemperor</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="moveCamera">
                            <float id="Target position">-90.00</float>
                            <float id="Scrolling duration">2.00</float>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl310b4_hisssroar</string>
                            <float id="Duration">8.00</float>
                            <string id="Texture">portrait_dragon</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl310b5_dragonlol</string>
                            <float id="Duration">8.00</float>
                            <string id="Texture">portrait_asianemperor</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="showMission">
                            <string id="Text identifier">lvl310obj2</string>
                        </action>
                        <action id="setFreezeGame">
                            <string id="Freeze game" values="yesno">no</string>
                            <string id="Freeze input" values="yesno">no</string>
                        </action>
                        <action id="useAbility">
                            <string id="abilityType" values="abilities">AsianDragon</string>
                            <string id="unitType" values="enemies">ANY</string>
                            <string id="target" values="targets">FrontUnit</string>
                            <string id="ownUnits" values="yesno">no</string>
                            <string id="cheat" values="yesno">yes</string>
                            <string id="ignoreCooldown" values="yesno">yes</string>
                            <string id="ignoreFogOfWar" values="yesno">yes</string>
                        </action>
                        <action id="setBool">
                            <string id="id">dragonDone</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </sequence>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.00</float>
            <condition id="getBool">
                <string id="id">workersGiven</string>
                <string id="value" values="yesno">no</string>
                <action id="setButtonEnabled">
                    <string id="Button" values="buttons">AsianRangedUpgrade</string>
                    <string id="Team" values="teams">ownTeam</string>
                    <string id="Enabled" values="yesno">no</string>
                </action>
                <action id="setButtonEnabled">
                    <string id="Button" values="buttons">AsianArrowRainUpgrade</string>
                    <string id="Team" values="teams">ownTeam</string>
                    <string id="Enabled" values="yesno">no</string>
                </action>
                <action id="setButtonEnabled">
                    <string id="Button" values="buttons">AsianDragon</string>
                    <string id="Team" values="teams">ownTeam</string>
                    <string id="Enabled" values="yesno">no</string>
                </action>
                <sequence>
                    <string id="Is blocking">no</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianWorker</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianWorker</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">2.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianWorker</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">4.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianWorker</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">8.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianWorker</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">10.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianWorker</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">12.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianWorker</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">16.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="setBool">
                        <string id="id">workersGiven</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                    <action id="setBool">
                        <string id="id">introCinEnabled</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </sequence>
            </condition>
        </condition>
    </behaviour>
</enemy>
