<?xml version="1.0" encoding="utf-8"?>

<puzzle>
   <!-- team include(s), max of 2 per puzzle -->
   <includeTeam>orcs</includeTeam>
   <includeTeam>darkelves</includeTeam>
  <!-- board spec -->
  <board>
    <Art gridOffsetX="-3.0" gridOffsetY="1.0">GameBoard03.pvr</Art>
    <deployZone>
      <tile x="0" y="3"/>
      <tile x="0" y="1"/>
    </deployZone>
    <premiumTiles>
    </premiumTiles>
    <preplace name="voidmonk" x="3" y="2" player ="0"/>
    <preplace name="impaler" x="3" y="1" player ="0"/>
    <preplace name="impaler" x="3" y="3" player ="0"/>
    <preplace name="shaman" x="5" y="1" player ="1" healthFraction="1.0"/>
    <preplace name="shaman" x="4" y="2" player ="1" healthFraction="1.0"/>
    <preplace name="shaman" x="5" y="3" player ="1" healthFraction="1.0"/>
  </board>

  <!-- tile spec -->
  <tileAllocation randomize="false">
    <tile name="scroll">1</tile>
    <tile name="weapon">1</tile>
  </tileAllocation>
  <script>
    <onStart>
      <hideUI name="SubmitButton"/>    
      <hideUI name="SettingsButton"/>      
      <showDialog name="welcome" tapToClose="true" closeTag="OK1" showTapIcon="true">Challenge_Goal_TeamKill</showDialog>
    </onStart>
      <onNamedTag tagName="OK1">
         <hideAllDialogs/>
         <setSection name="GoWin"/>
      </onNamedTag>
      <section name="GoWin">
         <onKO count="3">
            <sendTag tagName="Winning"/>
            <victory/>
         </onKO> 
         <untilTag tagName="Winning">
            <onAPRemaining count="0">
                <hideAllDialogs/>
                <showDialog name="fail" vAlign="Top" background="TutorialBubble02.png">Challenge_Defeat_NoAP</showDialog>
                <showArrow uiElement="ResetButton" orientation="Down"/>
            </onAPRemaining>
            <onUndo>
               <hideAllDialogs/>
               <hideArrow/>
            </onUndo>
          </untilTag> 
      </section>
   </script>
</puzzle>