<?xml version="1.0" ?>
<enemy>
    <behaviour>
        <condition id="timer">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.20</float>
            <condition id="getBool">
                <string id="id">p1</string>
                <string id="value" values="yesno">yes</string>
                <sequence>
                    <string id="Is blocking">no</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianMelee</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">11.00</float>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianMelee</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">12.00</float>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianNinja</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">8.00</float>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianNinja</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">3.00</float>
                    </action>
                </sequence>
            </condition>
            <condition id="getBool">
                <string id="id">CINa</string>
                <string id="value" values="yesno">yes</string>
                <condition id="getBool">
                    <string id="id">CINdone</string>
                    <string id="value" values="yesno">no</string>
                    <sequence>
                        <string id="Is blocking">yes</string>
                        <action id="setButtonEnabled">
                            <string id="Button" values="buttons">AsianYinYang</string>
                            <string id="Team" values="teams">ownTeam</string>
                            <string id="Enabled" values="yesno">yes</string>
                        </action>
                        <action id="setButtonHighlighted">
                            <string id="Button" values="buttons">AsianYinYang</string>
                            <string id="Team" values="teams">ownTeam</string>
                            <string id="Highlighted" values="yesno">yes</string>
                        </action>
                        <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.30</float>
                        </action>
                        <action id="moveCamera">
                            <float id="Target position">-35.00</float>
                            <float id="Scrolling duration">2.00</float>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl304b1_yinyang</string>
                            <float id="Duration">8.00</float>
                            <string id="Texture">portrait_buddha</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl304b2_yinyanggief</string>
                            <float id="Duration">8.00</float>
                            <string id="Texture">portrait_buddha</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="setBool">
                            <string id="id">CINa</string>
                            <string id="value" values="yesno">no</string>
                        </action>
                        <action id="setBool">
                            <string id="id">CINdone</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                        <action id="setFreezeGame">
                            <string id="Freeze game" values="yesno">no</string>
                            <string id="Freeze input" values="yesno">no</string>
                        </action>
                    </sequence>
                </condition>
            </condition>
            <condition id="getBool">
                <string id="id">manaTime</string>
                <string id="value" values="yesno">yes</string>
                <condition id="getBool">
                    <string id="id">manaGiven</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="timer">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">120.00</float>
                        <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">lvl304d1_extramana</string>
                                <float id="Duration">8.00</float>
                                <string id="Texture">portrait_buddha</string>
                                <string id="Location" values="textLocation">left</string>
                            </action>
                            <action id="addMana">
                                <float id="Amount">100.00</float>
                                <string id="Team" values="teams">ownTeam</string>
                            </action>
                            <action id="setFreezeGame">
                                <string id="Freeze game" values="yesno">no</string>
                                <string id="Freeze input" values="yesno">no</string>
                            </action>
                        </sequence>
                    </condition>
                </condition>
            </condition>
            <condition id="getBool">
                <string id="id">CINclick</string>
                <string id="value" values="yesno">no</string>
                <condition id="buttonHasBeenClicked">
                    <string id="Button" values="buttons">AsianYinYang</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">AsianYinYang</string>
                            <string id="Team" values="teams">ownTeam</string>
                            <string id="Highlighted" values="yesno">no</string>
                        </action>
                        <action id="setBool">
                            <string id="id">CINclick</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">90.00</float>
            <condition id="getBool">
                <string id="id">CINdone</string>
                <string id="value" values="yesno">yes</string>
                <condition id="getBool">
                    <string id="id">manaTime</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="getBool">
                        <string id="id">manaGiven</string>
                        <string id="value" values="yesno">no</string>
                        <action id="setBool">
                            <string id="id">manaTime</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">25.00</float>
            <condition id="getBool">
                <string id="id">start</string>
                <string id="value" values="yesno">yes</string>
                <condition id="getBool">
                    <string id="id">CINa</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="getBool">
                        <string id="id">CINdone</string>
                        <string id="value" values="yesno">no</string>
                        <action id="setBool">
                            <string id="id">CINa</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">5.00</float>
            <condition id="getBool">
                <string id="id">start</string>
                <string id="value" values="yesno">yes</string>
                <condition id="getBool">
                    <string id="id">p1</string>
                    <string id="value" values="yesno">no</string>
                    <sequence>
                        <string id="Is blocking">no</string>
                        <action id="setBool">
                            <string id="id">p1</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </sequence>
                </condition>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">start</string>
            <string id="value" values="yesno">no</string>
            <action id="setButtonEnabled">
                <string id="Button" values="buttons">AsianYinYang</string>
                <string id="Team" values="teams">ownTeam</string>
                <string id="Enabled" values="yesno">no</string>
            </action>
            <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">lvl304a1_start</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">lvl304a2_orelsewhat</string>
                    <float id="Duration">8.00</float>
                    <string id="Texture">portrait_asiannemesis</string>
                    <string id="Location" values="textLocation">right</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl304a3_fineomw</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">-37.00</float>
                    <float id="Scrolling duration">0.60</float>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl304a4_spellskk</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">lvl304obj</string>
                </action>
                <action id="setFreezeGame">
                    <string id="Freeze game" values="yesno">no</string>
                    <string id="Freeze input" values="yesno">no</string>
                </action>
                <action id="setBool">
                    <string id="id">start</string>
                    <string id="value" values="yesno">yes</string>
                </action>
            </sequence>
        </condition>
    </behaviour>
</enemy>
