PTR build 2.57.1.98674_ptr. Go to the live site.

mods/heroesmapmods/battlegroundmapmods/volskayadata.stormmod/base.stormdata/ai/volskayarobotpilot.aitree

volskayarobotpilot.aitree
<?xml version="1.0" encoding="us-ascii"?>
<tree>
  <include file="AI/MinionMap.aitree" />
  <mod id="00000000746F6F52" comment="Boss Laners never attack heroes, minions, and so they don't need to leash either.">
    <variable name="Ally Unit Count" type="Integer" />
    <variable name="Enemy Unit Count" type="Integer" />
    <variable name="EnemyNearPreventionTimer" type="Time" />
    <variable name="FleeTimer" type="Time" />
    <removeChild id="000000687361654C" />
    <removeChild id="0065636E61766441" />
    <removeChild id="69736F500A03063C" />
    <insertChild id="E07A3B68375FA906" after="6124111A080B002C" />
    <insertChild id="C46DFC49D5FD8839" after="E07A3B68375FA906" />
    <insertChild id="9D5696890B29EEF4" after="C46DFC49D5FD8839" />
    <insertChild id="3A59ED95CD999BA1" after="9D5696890B29EEF4" />
    <insertChild id="976CAD5DE2C1CA91" after="3A59ED95CD999BA1" />
    <insertChild id="D30CDC02F7BAA283" after="976CAD5DE2C1CA91" />
    <insertChild id="62D04FD024138FCB" after="6E496B63041A150D" />
  </mod>
  <mod name="Find Hero" id="0736191615170133" comment="Reduce the range of attacking structures because the boss is a little bigger than regular minions.">
    <property name="MaxTargetDistance" valueSource="literal" value="6.75" />
    <property name="TargetTypes" valueSource="literal" value="Heroic" />
    <property name="ExcludeTypes" valueSource="literal" value="NoMinionAggro,Missile,Stasis,Dead,Invulnerable,Benign,Summoned" />
    <property name="FilterTargetsBehindGate" valueSource="literal" value="true" />
  </mod>
  <mod name="" id="1D230C110020102F">
    <removeChild id="694D6B100F1B1D2F" />
    <removeChild id="30C97CE23B02993B" />
    <removeChild id="0736191615170133" />
    <removeChild id="835364CAFA5D0BDB" />
    <insertChild id="F90097B32858BF00" before="" />
    <insertChild id="55BF9737B85A773C" after="F90097B32858BF00" />
  </mod>
  <mod name="Wait for Stasis" id="21755947686E6356">
    <property name="FilterTargetsBehindGate" valueSource="literal" value="true" />
    <property name="MaxTargetDistance" valueSource="literal" value="6.75" />
  </mod>
  <mod name="Update Waypoints" id="6124111A080B002C" />
  <mod name="" id="6E496B63041A150D">
    <removeChild id="61546B6315111333" />
    <insertChild id="F5C5E9C4D8DFA96B" after="1D230C110020102F" />
  </mod>
  <node name="" type="Select" id="C46DFC49D5FD8839" comment="Root For Hero Tactical AI">
    <insertChild id="40F3CFE1A96C40FB" />
    <insertChild id="BFABBBFFC0CA4CAA" />
    <insertChild id="EB55BD3B51D37BC0" />
  </node>
  <node name="Team Shield" type="AbilityUsable" id="EB55BD3B51D37BC0">
    <property name="Ability" valueSource="literal" value="VolskayaVehicleTShield" />
    <insertChild id="64130274B805509A" />
  </node>
  <node name="" type="And" id="64130274B805509A">
    <variable name="AbilityRange" type="Number" />
    <insertChild id="811C91D14B6F8A82" />
    <insertChild id="694A5306A1F9A9F6" />
  </node>
  <node name="" type="Or" id="53B03807E0D43330">
    <insertChild id="C1E331DAFBA673A9" />
    <insertChild id="EB11C966A6C1EB61" />
  </node>
  <node name="3 Enemies Close" type="UnitCount" id="C1E331DAFBA673A9">
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="TargetCount" valueSource="literal" value="3" />
    <property name="MaxTargetDistance" valueSource="literal" value="8" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy,Heroic" />
    <property name="AddUnitRadiusToMaxTargetDistance" valueSource="intrinsic" value="Self" />
    <property name="MaxLifeFraction" valueSource="literal" value="0.9" />
  </node>
  <node name="1 Injured Ally Close" type="UnitCount" id="EB11C966A6C1EB61">
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="RequiredTypes" valueSource="literal" value="Ally,Heroic" />
    <property name="TargetCount" valueSource="literal" value="1" />
    <property name="MaxTargetDistance" valueSource="literal" value="6" />
    <property name="MaxLifeFraction" valueSource="literal" value="0.5" />
    <property name="AddUnitRadiusToMaxTargetDistance" valueSource="intrinsic" value="Self" />
  </node>
  <node name="Team Shield" type="Ability" id="694A5306A1F9A9F6">
    <property name="Ability" valueSource="literal" value="VolskayaVehicleTShield" />
  </node>
  <node name="Move Forward" type="HeroMoveToPoint" id="62D04FD024138FCB">
    <property name="TargetPosition" valueSource="variable" value="Next Way Point" />
  </node>
  <node name="Fight" type="HeroFight" id="F5C5E9C4D8DFA96B">
    <property name="Target" valueSource="variable" value="Attack Target" />
    <property name="DisableTacticalPositioning" valueSource="literal" value="true" />
    <property name="FightRange" valueSource="intrinsic" value="AttackRange" />
  </node>
  <node name="Find Structure" type="FindBestTarget" id="55BF9737B85A773C" comment="Reduce the range of attacking structures because the boss is a little bigger than regular minions.">
    <property name="RequireSameLaneForStructures" valueSource="literal" value="true" />
    <property name="TargetTypes" valueSource="literal" value="AITargetableStructure" />
    <property name="ExcludeTypes" valueSource="literal" value="NoMinionAggro,Missile,Stasis,Dead,Invulnerable,Benign" />
    <property name="FilterTargetsBehindGate" valueSource="literal" value="true" />
    <property name="MaxTargetDistance" valueSource="literal" value="6.75" />
    <property name="DistanceFactor" valueSource="literal" value="2" />
    <property name="BumpMaxDistanceToWeaponRange" valueSource="literal" value="true" />
    <property name="OutputTarget" value="Attack Target" />
    <property name="AddUnitRadiusToMaxTargetDistance" valueSource="intrinsic" value="Self" />
  </node>
  <node name="" type="And" id="D30CDC02F7BAA283">
    <variable name="AllyGettingInVehicle" type="Unit" />
    <insertChild id="7C03BF6A6171C53F" />
    <insertChild id="87075BC8A57A5E8B" />
  </node>
  <node name="Find Hero" type="FindBestTarget" id="DF0F6900185514B6" comment="Reduce the range of attacking structures because the boss is a little bigger than regular minions.">
    <property name="RequireSameLaneForStructures" valueSource="literal" value="true" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="ExcludeTypes" valueSource="literal" value="NoMinionAggro,Missile,Stasis,Dead,Invulnerable,Benign,Summoned" />
    <property name="MaxTargetDistance" valueSource="literal" value="3" />
    <property name="DistanceFactor" valueSource="literal" value="2" />
    <property name="BumpMaxDistanceToWeaponRange" valueSource="literal" value="true" />
    <property name="OutputTarget" value="AllyGettingInVehicle" />
    <property name="RequiredTypes" valueSource="literal" value="Ally,Heroic" />
    <property name="Behavior" valueSource="literal" value="CommandeeringVehicle" />
    <property name="AddUnitRadiusToMaxTargetDistance" valueSource="intrinsic" value="Self" />
  </node>
  <node name="Stop Moving" type="MoveToPoint" id="87075BC8A57A5E8B">
    <property name="Target" valueSource="intrinsic" value="SelfPos" />
    <property name="HoldIfInRange" valueSource="literal" value="true" />
  </node>
  <node name="Ignore Sleeping" type="FilterBehaviorCategory" id="7C03BF6A6171C53F">
    <property name="ExcludeCategories" valueSource="literal" value="Sleeping" />
    <insertChild id="DF0F6900185514B6" />
  </node>
  <node name="Ignore Sleeping" type="FilterBehaviorCategory" id="F90097B32858BF00">
    <property name="ExcludeCategories" valueSource="literal" value="Sleeping" />
    <insertChild id="0736191615170133" />
  </node>
  <node name="Charge" type="AbilityUsable" id="40F3CFE1A96C40FB" comment="This Node is the start of the branch. It check that the ability is actually usable before doing any logic for it.">
    <property name="Ability" valueSource="literal" value="VolskayaVehicleCharge" />
    <insertChild id="41429EE4E12DE745" />
  </node>
  <node name="Base Node" type="And" id="41429EE4E12DE745" comment="This Node links targeting Logic, ability use and talent modifications">
    <variable name="AbilityRange" type="Number" valueSource="lookup" value="Abil,VolskayaVehicleCharge,Range" comment="Range of the Ability" />
    <variable name="AbilityTargetUnit" type="Unit" comment="Target to Use Ability on" />
    <variable name="AbilityLowManaThreshHold" type="Number" value="0.4" comment="Low Mana Threshhold" />
    <variable name="AbilityHighManaThreshHold" type="Number" value="0.75" comment="High Mana Threshhold" />
    <variable name="AbilityDamage" type="Number" valueSource="lookup" value="Effect,VolskayaVehicleChargeDamage,Amount" />
    <insertChild id="BC94E370F8C10745" />
    <insertChild id="B9707B2DF23A7090" />
  </node>
  <node name="" type="Or" id="BC94E370F8C10745">
    <insertChild id="CBEBDC15B9E78FCE" />
    <insertChild id="D675E6C5CDE95F3F" />
  </node>
  <node name="Elite" type="Difficulty" id="CBEBDC15B9E78FCE">
    <insertChild id="BC2F96574F861618" />
  </node>
  <node name="" type="Or" id="BC2F96574F861618">
    <insertChild id="46FE9305589CD115" />
  </node>
  <node name="Fatal Damage" type="FilterLife" id="46FE9305589CD115">
    <property name="MaxLife" valueSource="variable" value="AbilityDamage" />
    <insertChild id="3CB459C978777DBA" />
  </node>
  <node name="Find Hurt Target" type="FindBestTarget" id="3CB459C978777DBA">
    <property name="OutputTarget" value="AbilityTargetUnit" />
    <property name="MaxTargetDistance" valueSource="variable" value="AbilityRange" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy,Heroic" />
  </node>
  <node name="PvP/PvE" type="IfElse" id="D675E6C5CDE95F3F">
    <insertChild id="DE3DA1D441D231FF" />
    <insertChild id="80CB59A4BF23259D" />
    <insertChild id="25D379F20E1FB6BF" />
  </node>
  <node name="EnemyStructureNearby" type="UnitCount" id="DE3DA1D441D231FF">
    <property name="TargetTypes" valueSource="literal" value="AITargetableStructure" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="MaxTargetDistance" valueSource="variable" value="AbilityRange" />
    <property name="TargetCount" valueSource="literal" value="1" />
  </node>
  <node name="High Mana Targeting" type="Or" id="25D379F20E1FB6BF">
    <insertChild id="01E9CB899E365F7F" />
  </node>
  <node name="Enemy &lt; 95%" type="FindBestTarget" id="01E9CB899E365F7F">
    <property name="OutputTarget" value="AbilityTargetUnit" />
    <property name="MaxTargetDistance" valueSource="variable" value="AbilityRange" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy,Heroic" />
    <property name="DistanceFactor" valueSource="literal" value="0" />
    <property name="LifeFractionFactor" valueSource="literal" value="10" />
  </node>
  <node name="High Mana Targeting" type="Or" id="80CB59A4BF23259D">
    <insertChild id="096677D1C37AA69F" />
    <insertChild id="DB3E83B133084FF8" />
    <insertChild id="8FAB852BB5FD1C7A" />
    <insertChild id="0C45F4C3B5F69FD9" />
    <insertChild id="CD467E892DAE9112" />
    <insertChild id="3E707C416B331DE3" />
  </node>
  <node name="Use Ability" type="Ability" id="B9707B2DF23A7090">
    <property name="Ability" valueSource="literal" value="VolskayaVehicleCharge" />
    <property name="TargetUnit" valueSource="variable" value="AbilityTargetUnit" />
  </node>
  <node name="Rocket Fist" type="AbilityUsable" id="BFABBBFFC0CA4CAA" comment="This Node is the start of the branch. It check that the ability is actually usable before doing any logic for it.">
    <property name="Ability" valueSource="literal" value="VolskayaVehicleRocketFist" />
    <insertChild id="6D8F1F4EEA56DD1B" />
  </node>
  <node name="Base Node" type="And" id="6D8F1F4EEA56DD1B" comment="This Node links targeting Logic, ability use and talent modifications">
    <variable name="AbilityRange" type="Number" valueSource="lookup" value="Effect,VolskayaVehicleRocketFistLaunchMissile,ImpactLocation.ProjectionDistanceScale" comment="Range of the Ability" />
    <variable name="AbilityTargetPoint" type="Point" comment="Target Point of the ability" />
    <variable name="AbilityMissileRadius" type="Number" valueSource="lookup" value="Effect,VolskayaVehicleRocketFistSearchArea,AreaArray[0].RectangleWidth" comment="Width of the Ability Searches" />
    <variable name="AbilityMissilePierceCount" type="Number" comment="Number of Blockers this can go through" />
    <variable name="AbilityHighManaThreshHold" type="Number" value="0.75" comment="High Mana ThreshHold" />
    <variable name="AbilityLowManaThreshHold" type="Number" value="0.4" comment="Low Mana ThreshHold" />
    <variable name="AbilityDamage" type="Number" valueSource="lookup" value="Effect,VolskayaVehicleRocketFistDamage,Amount" />
    <insertChild id="2CC2B66235AB3B91" />
    <insertChild id="8A5EF50606C7D056" />
  </node>
  <node name="" type="Or" id="2CC2B66235AB3B91">
    <insertChild id="D27E628679F27B01" />
    <insertChild id="847B3E4C7E60F2A7" />
  </node>
  <node name="Elite" type="Difficulty" id="D27E628679F27B01">
    <insertChild id="E341917646DAE451" />
  </node>
  <node name="" type="Or" id="E341917646DAE451">
    <insertChild id="FB2A091169F95DAC" />
  </node>
  <node name="Fatal Damage" type="FilterLife" id="FB2A091169F95DAC">
    <property name="MaxLife" valueSource="variable" value="AbilityDamage" />
    <insertChild id="8ABBC58AD3DECD17" />
  </node>
  <node name="Find 1 Hero" type="FindBestVector" id="8ABBC58AD3DECD17">
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy,Heroic" />
    <property name="MissilePierceCount" valueSource="variable" value="AbilityMissilePierceCount" />
    <property name="MissileRadius" valueSource="variable" value="AbilityMissileRadius" />
    <property name="OutputEndPoint" value="AbilityTargetPoint" />
    <property name="MinTargets" valueSource="literal" value="1" />
    <property name="MaxVectorLength" valueSource="variable" value="AbilityRange" />
    <property name="TargetBlockingTypes" valueSource="literal" value="Structure" />
  </node>
  <node name="PvP/PvE" type="IfElse" id="847B3E4C7E60F2A7">
    <insertChild id="549C7FC411F23C7E" />
    <insertChild id="E9BB42E8E633091A" />
    <insertChild id="744ED14595FC57FF" />
  </node>
  <node name="High Mana Targeting" type="Or" id="744ED14595FC57FF">
    <insertChild id="BD0361E303B8B127" />
  </node>
  <node name="Find 1 Hero" type="FindBestVector" id="BD0361E303B8B127">
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy,Heroic" />
    <property name="MissilePierceCount" valueSource="variable" value="AbilityMissilePierceCount" />
    <property name="MissileRadius" valueSource="variable" value="AbilityMissileRadius" />
    <property name="OutputEndPoint" value="AbilityTargetPoint" />
    <property name="MinTargets" valueSource="literal" value="1" />
    <property name="MaxVectorLength" valueSource="variable" value="AbilityRange" />
    <property name="TargetBlockingTypes" valueSource="literal" value="Structure" />
    <property name="MaxLifeFraction" valueSource="literal" value="0.9" />
  </node>
  <node name="High Mana Targeting" type="Or" id="E9BB42E8E633091A">
    <insertChild id="68490790DE44ECAE" />
    <insertChild id="5076271A42B45B29" />
    <insertChild id="F5AED6AFE17971E1" />
    <insertChild id="A12007C4A746D9DE" />
    <insertChild id="D705E1B205B02F1C" />
  </node>
  <node name="Fort" type="FindBestVector" id="A12007C4A746D9DE">
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="MissilePierceCount" valueSource="variable" value="AbilityMissilePierceCount" />
    <property name="MissileRadius" valueSource="variable" value="AbilityMissileRadius" />
    <property name="OutputEndPoint" value="AbilityTargetPoint" />
    <property name="MaxVectorLength" valueSource="variable" value="AbilityRange" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="UnitType" valueSource="literal" value="TownTownHallL2" />
    <property name="TargetBlockingTypes" valueSource="literal" value="Structure,Heroic" />
  </node>
  <node name="Use Ability" type="Ability" id="8A5EF50606C7D056">
    <property name="Ability" valueSource="literal" value="VolskayaVehicleRocketFist" />
    <property name="TargetPoint" valueSource="variable" value="AbilityTargetPoint" />
  </node>
  <node name="EnemyStructureNearby" type="UnitCount" id="549C7FC411F23C7E">
    <property name="TargetTypes" valueSource="literal" value="AITargetableStructure" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="MaxTargetDistance" valueSource="variable" value="AbilityRange" />
    <property name="TargetCount" valueSource="literal" value="1" />
  </node>
  <node name="Keep" type="FindBestVector" id="D705E1B205B02F1C">
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="MissilePierceCount" valueSource="variable" value="AbilityMissilePierceCount" />
    <property name="MissileRadius" valueSource="variable" value="AbilityMissileRadius" />
    <property name="OutputEndPoint" value="AbilityTargetPoint" />
    <property name="MaxVectorLength" valueSource="variable" value="AbilityRange" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="UnitType" valueSource="literal" value="TownTownHallL3" />
    <property name="TargetBlockingTypes" valueSource="literal" value="Structure,Heroic" />
  </node>
  <node name="Tower L2" type="FindBestVector" id="F5AED6AFE17971E1">
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="MissilePierceCount" valueSource="variable" value="AbilityMissilePierceCount" />
    <property name="MissileRadius" valueSource="variable" value="AbilityMissileRadius" />
    <property name="OutputEndPoint" value="AbilityTargetPoint" />
    <property name="MaxVectorLength" valueSource="variable" value="AbilityRange" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="UnitType" valueSource="literal" value="TownCannonTowerL2" />
    <property name="TargetBlockingTypes" valueSource="literal" value="Structure,Heroic" />
  </node>
  <node name="Tower L3" type="FindBestVector" id="5076271A42B45B29">
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="MissilePierceCount" valueSource="variable" value="AbilityMissilePierceCount" />
    <property name="MissileRadius" valueSource="variable" value="AbilityMissileRadius" />
    <property name="OutputEndPoint" value="AbilityTargetPoint" />
    <property name="MaxVectorLength" valueSource="variable" value="AbilityRange" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="UnitType" valueSource="literal" value="TownCannonTowerL3" />
    <property name="TargetBlockingTypes" valueSource="literal" value="Structure,Heroic" />
  </node>
  <node name="Tower L3" type="FindBestTarget" id="DB3E83B133084FF8">
    <property name="OutputTarget" value="AbilityTargetUnit" />
    <property name="MaxTargetDistance" valueSource="variable" value="AbilityRange" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="UnitType" valueSource="literal" value="TownCannonTowerL3" />
    <property name="TargetTypes" valueSource="literal" value="" />
  </node>
  <node name="Tower L2" type="FindBestTarget" id="8FAB852BB5FD1C7A">
    <property name="OutputTarget" value="AbilityTargetUnit" />
    <property name="MaxTargetDistance" valueSource="variable" value="AbilityRange" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="UnitType" valueSource="literal" value="TownCannonTowerL2" />
  </node>
  <node name="Fort" type="FindBestTarget" id="0C45F4C3B5F69FD9">
    <property name="OutputTarget" value="AbilityTargetUnit" />
    <property name="MaxTargetDistance" valueSource="variable" value="AbilityRange" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="UnitType" valueSource="literal" value="TownTownHallL2" />
  </node>
  <node name="Keep" type="FindBestTarget" id="CD467E892DAE9112">
    <property name="OutputTarget" value="AbilityTargetUnit" />
    <property name="MaxTargetDistance" valueSource="variable" value="AbilityRange" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="UnitType" valueSource="literal" value="TownTownHallL3" />
  </node>
  <node name="Structure Nearby" type="FindBestTarget" id="3E707C416B331DE3">
    <property name="OutputTarget" value="AbilityTargetUnit" />
    <property name="MaxTargetDistance" valueSource="variable" value="AbilityRange" />
    <property name="TargetTypes" valueSource="literal" value="AITargetableStructure" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
  </node>
  <node name="Allies Taken Damage Recently" type="FilterRecentlyDamaged" id="811C91D14B6F8A82">
    <property name="WithinSeconds" valueSource="literal" value="1" />
    <insertChild id="53B03807E0D43330" />
  </node>
  <node name="" type="And" id="976CAD5DE2C1CA91">
    <variable name="Structure To Attack" type="Unit" />
    <variable name="Attack Range" type="Number" value="5" />
    <insertChild id="8CB746FBCC486A05" />
    <insertChild id="F5B73E4B7F29D5A3" />
  </node>
  <node name="Fight Structure" type="HeroFight" id="F5B73E4B7F29D5A3">
    <property name="Target" valueSource="variable" value="Structure To Attack" />
  </node>
  <node name="High Mana Targeting" type="Or" id="8CB746FBCC486A05">
    <insertChild id="490235D7473FFEB6" />
    <insertChild id="98DFCFF2C5DCD009" />
    <insertChild id="6B31BE0FD76BC7D4" />
    <insertChild id="925C5803660170EF" />
    <insertChild id="AD9F493099995A20" />
  </node>
  <node name="Tower L3" type="FindBestTarget" id="490235D7473FFEB6">
    <property name="OutputTarget" value="Structure To Attack" />
    <property name="MaxTargetDistance" valueSource="intrinsic" value="AttackRange" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="UnitType" valueSource="literal" value="TownCannonTowerL3" />
    <property name="TargetTypes" valueSource="literal" value="" />
  </node>
  <node name="Tower L2" type="FindBestTarget" id="98DFCFF2C5DCD009">
    <property name="OutputTarget" value="Structure To Attack" />
    <property name="MaxTargetDistance" valueSource="variable" value="Attack Range" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="UnitType" valueSource="literal" value="TownCannonTowerL2" />
  </node>
  <node name="Fort" type="FindBestTarget" id="6B31BE0FD76BC7D4">
    <property name="OutputTarget" value="Structure To Attack" />
    <property name="MaxTargetDistance" valueSource="variable" value="Attack Range" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="UnitType" valueSource="literal" value="TownTownHallL2" />
  </node>
  <node name="Keep" type="FindBestTarget" id="925C5803660170EF">
    <property name="OutputTarget" value="Structure To Attack" />
    <property name="MaxTargetDistance" valueSource="variable" value="Attack Range" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="UnitType" valueSource="literal" value="TownTownHallL3" />
  </node>
  <node name="Structure Nearby" type="FindBestTarget" id="AD9F493099995A20">
    <property name="OutputTarget" value="Structure To Attack" />
    <property name="MaxTargetDistance" valueSource="variable" value="Attack Range" />
    <property name="TargetTypes" valueSource="literal" value="AITargetableStructure" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
  </node>
  <node name="Weak Hero to Finish" type="And" id="3A59ED95CD999BA1" comment="Find a target and attack it.">
    <variable name="Attack Target" type="Unit" />
    <insertChild id="9B8CEED0F1A08CAC" />
    <insertChild id="CBFA7DCC58A43E63" />
  </node>
  <node name="" type="Or" id="9B8CEED0F1A08CAC" comment="Find a target to attack in lane.">
    <insertChild id="59787371E35B7A9E" />
  </node>
  <node name="Find Hero" type="FindBestTarget" id="59787371E35B7A9E" comment="Reduce the range of attacking structures because the boss is a little bigger than regular minions.">
    <property name="RequireSameLaneForStructures" valueSource="literal" value="true" />
    <property name="TargetTypes" valueSource="literal" value="Heroic" />
    <property name="ExcludeTypes" valueSource="literal" value="NoMinionAggro,Missile,Stasis,Dead,Invulnerable,Benign,Summoned" />
    <property name="MaxTargetDistance" valueSource="literal" value="6.75" />
    <property name="DistanceFactor" valueSource="literal" value="2" />
    <property name="BumpMaxDistanceToWeaponRange" valueSource="literal" value="true" />
    <property name="OutputTarget" value="Attack Target" />
    <property name="AddUnitRadiusToMaxTargetDistance" valueSource="intrinsic" value="Self" />
    <property name="FilterTargetsBehindGate" valueSource="literal" value="true" />
    <property name="MaxLifeFraction" valueSource="literal" value="0.3" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
  </node>
  <node name="Fight" type="HeroFight" id="CBFA7DCC58A43E63">
    <property name="Target" valueSource="variable" value="Attack Target" />
    <property name="DisableTacticalPositioning" valueSource="literal" value="true" />
    <property name="FightRange" valueSource="intrinsic" value="AttackRange" />
  </node>
  <node name="Enemy &lt; 25%" type="FindBestTarget" id="096677D1C37AA69F">
    <property name="OutputTarget" value="AbilityTargetUnit" />
    <property name="MaxTargetDistance" valueSource="variable" value="AbilityRange" />
    <property name="TargetTypes" valueSource="literal" value="" />
    <property name="RequiredTypes" valueSource="literal" value="Enemy,Heroic" />
    <property name="DistanceFactor" valueSource="literal" value="0" />
    <property name="LifeFractionFactor" valueSource="literal" value="10" />
    <property name="MaxLifeFraction" valueSource="literal" value="0.25" />
  </node>
  <node name="Hero" type="FindBestVector" id="68490790DE44ECAE">
    <property name="RequiredTypes" valueSource="literal" value="Enemy" />
    <property name="MissilePierceCount" valueSource="variable" value="AbilityMissilePierceCount" />
    <property name="MissileRadius" valueSource="variable" value="AbilityMissileRadius" />
    <property name="OutputEndPoint" value="AbilityTargetPoint" />
    <property name="MaxVectorLength" valueSource="variable" value="AbilityRange" />
    <property name="TargetTypes" valueSource="literal" value="Heroic" />
    <property name="TargetBlockingTypes" valueSource="literal" value="Structure,Heroic" />
    <property name="MaxLifeFraction" valueSource="literal" value="0.3" />
  </node>
  <node name="FleeCheck" type="And" id="9D5696890B29EEF4" comment="This branch should contain logic for when you are specifically running away. This branch turns on often when AI gets out of position. Don't just use cooldowns/mana in Flee make sure there are enemies close as sometimes the AI is just pulling back because it thinks its out of position and not in real danger.">
    <insertChild id="AB723905AE0AC2D9" />
    <insertChild id="BAF373BF2C695FBC" />
    <insertChild id="B02F54457CD65160" />
  </node>
  <node name="ShouldFlee" type="Or" id="BAF373BF2C695FBC">
    <insertChild id="5F3885C0B71E3A21" />
    <insertChild id="928C1021BD747703" />
  </node>
  <node name="" type="Not" id="5F3885C0B71E3A21">
    <insertChild id="5613166AF26E43CC" />
  </node>
  <node name="FinishedDangerTimer" type="TimerFinished" id="5613166AF26E43CC">
    <property name="FinishTime" valueSource="variable" value="FleeTimer" />
  </node>
  <node name="StartDangerTimer" type="TimerStart" id="B02F54457CD65160">
    <property name="OutputFinishTime" value="FleeTimer" />
    <property name="DurationSeconds" valueSource="literal" value="1" />
    <property name="StartOnFirstRunning" valueSource="literal" value="true" />
    <insertChild id="CF604F78C3B10203" />
  </node>
  <node name="Escape" type="Select" id="CF604F78C3B10203">
    <insertChild id="7D777DAEF38E6830" />
  </node>
  <node name="MoveToSafety" type="HeroMoveToPoint" id="7D777DAEF38E6830">
    <property name="TargetPosition" valueSource="intrinsic" value="SafePos" />
    <property name="StopRange" valueSource="literal" value="2" />
    <property name="StartRange" valueSource="literal" value="2" />
  </node>
  <node name="No Quarter Value Heroes" type="FilterBehavior" id="E07A3B68375FA906">
    <property name="Behavior" valueSource="literal" value="OneQuarterValueHero" />
    <property name="StackComparison" valueSource="literal" value="Eq" />
    <insertChild id="0260769CE1C1470A" />
  </node>
  <node name="Ally And Enemy Counts" type="Select" id="0260769CE1C1470A">
    <variable name="Allowed Time" type="Number" value="1" />
    <variable name="Prevention Time" type="Number" value="5" />
    <variable name="CurrentEnemyCount" type="Integer" />
    <insertChild id="62E5B10A1A48ADA1" />
    <insertChild id="4FC4C60D9B93AB47" />
    <insertChild id="816B357DB3C35211" />
  </node>
  <node name="Ally Count" type="UnitCount" id="62E5B10A1A48ADA1">
    <property name="TargetTypes" valueSource="literal" value="Self,Player,Ally" />
    <property name="RequiredTypes" valueSource="literal" value="Heroic" />
    <property name="MaxTargetDistance" valueSource="literal" value="15" />
    <property name="OutputCount" value="Ally Unit Count" />
    <property name="MinLifeFraction" valueSource="literal" value="0.1" />
  </node>
  <node name="Check Timers" type="And" id="4FC4C60D9B93AB47">
    <insertChild id="7D5F0AEA4A0AAA20" />
    <insertChild id="899ED278E4E2F6B4" />
    <insertChild id="ADBEE2BFD71E899E" />
  </node>
  <node name="NearEnemy" type="UnitCount" id="7D5F0AEA4A0AAA20">
    <property name="TargetTypes" valueSource="literal" value="Enemy" />
    <property name="RequiredTypes" valueSource="literal" value="Heroic" />
    <property name="MaxTargetDistance" valueSource="literal" value="15" />
    <property name="OutputCount" value="CurrentEnemyCount" />
    <property name="MinLifeFraction" valueSource="literal" value="0.1" />
  </node>
  <node name="Requirements to Start" type="Select" id="899ED278E4E2F6B4" comment="If this node is true then the allowed branch will run for allowed time then not run until the Prevention timer finishes.">
    <insertChild id="EE0EC864EA133F77" />
    <insertChild id="D3A2821BEE16F281" />
  </node>
  <node name="Prevention Timer" type="TimerFinished" id="EE0EC864EA133F77">
    <property name="FinishTime" valueSource="variable" value="EnemyNearPreventionTimer" />
  </node>
  <node name="More Enemies" type="CompareNumber" id="D3A2821BEE16F281">
    <property name="LeftHandSide" valueSource="variable" value="CurrentEnemyCount" />
    <property name="RightHandSide" valueSource="variable" value="Enemy Unit Count" />
    <property name="Comparison" valueSource="literal" value="GE" />
  </node>
  <node name="Timer Prevent" type="TimerStart" id="ADBEE2BFD71E899E">
    <property name="OutputFinishTime" value="EnemyNearPreventionTimer" />
    <property name="DurationSeconds" valueSource="variable" value="Prevention Time" />
  </node>
  <node name="Allow or Disallow" type="IfElse" id="816B357DB3C35211">
    <insertChild id="B656B93B85084A4A" />
    <insertChild id="E7B49D12B68B2868" />
    <insertChild id="5656C330F80BA80D" />
  </node>
  <node name="" type="Or" id="B656B93B85084A4A">
    <insertChild id="17447C5D6343F44F" />
  </node>
  <node name="More Enemies" type="CompareNumber" id="17447C5D6343F44F">
    <property name="LeftHandSide" valueSource="variable" value="CurrentEnemyCount" />
    <property name="RightHandSide" valueSource="variable" value="Enemy Unit Count" />
    <property name="Comparison" valueSource="literal" value="GE" />
  </node>
  <node name="Allowed" type="And" id="E7B49D12B68B2868" comment="This branch will run for the allowed time and then will stop doing the allowed node until the Prevention Time has elapsed">
    <insertChild id="FDE219E941AA13AE" />
    <insertChild id="8A5BD048A39CC86B" />
  </node>
  <node name="NearEnemy" type="UnitCount" id="FDE219E941AA13AE">
    <property name="TargetTypes" valueSource="literal" value="Enemy" />
    <property name="RequiredTypes" valueSource="literal" value="Heroic" />
    <property name="MaxTargetDistance" valueSource="literal" value="15" />
    <property name="OutputCount" value="Enemy Unit Count" />
    <property name="MinLifeFraction" valueSource="literal" value="0.1" />
  </node>
  <node name="Timer Prevent" type="TimerStart" id="8A5BD048A39CC86B">
    <property name="OutputFinishTime" value="EnemyNearPreventionTimer" />
    <property name="DurationSeconds" valueSource="variable" value="Prevention Time" />
  </node>
  <node name="Disallowed" type="And" id="5656C330F80BA80D">
    <insertChild id="29B7E8558486A4A0" />
    <insertChild id="C4E70007444ED6F7" />
    <insertChild id="D6BD501590109366" />
  </node>
  <node name="Timer PrevtionDelay" type="TimerFinished" id="29B7E8558486A4A0">
    <property name="FinishTime" valueSource="variable" value="EnemyNearPreventionTimer" />
  </node>
  <node name="NearEnemy" type="UnitCount" id="C4E70007444ED6F7">
    <property name="TargetTypes" valueSource="literal" value="Enemy" />
    <property name="RequiredTypes" valueSource="literal" value="Heroic" />
    <property name="MaxTargetDistance" valueSource="literal" value="15" />
    <property name="OutputCount" value="Enemy Unit Count" />
    <property name="TargetCount" valueSource="literal" value="1" />
    <property name="MinLifeFraction" valueSource="literal" value="0.1" />
  </node>
  <node name="Timer Prevent" type="TimerStart" id="D6BD501590109366">
    <property name="OutputFinishTime" value="EnemyNearPreventionTimer" />
    <property name="DurationSeconds" valueSource="variable" value="Prevention Time" />
  </node>
  <node name="Enemy Outnumbers Ally" type="CompareNumber" id="928C1021BD747703">
    <property name="LeftHandSide" valueSource="variable" value="Ally Unit Count" />
    <property name="RightHandSide" valueSource="variable" value="Enemy Unit Count" />
    <property name="Comparison" valueSource="literal" value="LT" />
  </node>
  <node name="Self &lt;20%" type="LifeFraction" id="1F1454B68D69AF3D">
    <property name="LifeFraction" valueSource="literal" value="0.1" />
    <property name="Comparison" valueSource="literal" value="LT" />
    <property name="Target" valueSource="intrinsic" value="Self" />
  </node>
  <node name="" type="Or" id="AB723905AE0AC2D9">
    <insertChild id="1F1454B68D69AF3D" />
    <insertChild id="5F80D0C19A605680" />
  </node>
  <node name="" type="UnitHasBehavior" id="5F80D0C19A605680">
    <property name="Unit" valueSource="intrinsic" value="Self" />
    <property name="Behavior" valueSource="literal" value="VehicleDragonTimedLife" />
    <property name="TimeRemainingComparison" valueSource="literal" value="LT" />
    <property name="TimeRemaining" valueSource="literal" value="10" />
  </node>
</tree>