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

<puzzle>
   <!-- team include(s), max of 2 per puzzle -->
  <includeTeam>darkelves</includeTeam>
  <includeTeam>tf2a</includeTeam>  
   <!-- board spec -->
   <board>
      <Art gridOffsetX="-3.0" gridOffsetY="1.0">GameBoard_TF2.pvr</Art>
      <deployZone>
      </deployZone>
	  <premiumTiles>
      <premiumTile type="Resist" x="5" y="2"/>
      <premiumTile type="Resist" x="4" y="1"/>
      <premiumTile type="Resist" x="4" y="3"/>
      <premiumTile type="Resist" x="3" y="2"/>
      <premiumTile type="Resist" x="3" y="1"/>
      <premiumTile type="Resist" x="3" y="3"/>
      <premiumTile type="Resist" x="4" y="2"/>
      <premiumTile type="Resist" x="6" y="1"/>
      <premiumTile type="Resist" x="6" y="3"/>
   	  </premiumTiles>
     <preplace name="MediumCrystal" x="6" y="2" player ="1" victoryHealthPool="true"/>
     <preplace name="tf2a-spy" x="2" y="2" player ="0"/>
     <preplace name="tf2a-medic" x="0" y="2" player ="0"/>
     <preplace name="tf2a-soldier" x="6" y="4" player ="0"/>
     <preplace name="tf2a-soldier" x="6" y="0" player ="0"/>
     <preplace name="tf2a-demoman" x="5" y="1" player ="0"/>
     <preplace name="tf2a-demoman" x="4" y="2" player ="0"/>
     <preplace name="tf2a-demoman" x="5" y="3" player ="0"/>
     <preplace name="tf2a-sniper" x="1" y="2" player ="0"/>
     <preplace name="tf2a-engineer" x="2" y="1" player ="0"/>
     <preplace name="tf2a-engineer" x="2" y="3" player ="0"/>
     <preplace name="voidmonk" x="5" y="2" player ="1" healthFraction="1"/>
   </board>
   <!-- tile spec -->
   <tileAllocation randomize="false">
   </tileAllocation>   
   <script>
      <onStart>
         <hideUI name="SubmitButton"/>      
         <hideUI name="SettingsButton"/>         
         <showDialog name="welcome" tapToClose="true" closeTag="OK1" showTapIcon="true">Challenge_Goal_VoidMonkKill</showDialog>
      </onStart>
      <onNamedTag tagName="OK1">
         <hideAllDialogs/>
         <setSection name="GoWin"/>
      </onNamedTag>
      <section name="GoWin">
        <onKO count="1">
          <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>