<abilities>
  <ability>
    <name>Last Stand</name>
    <key>last_stand</key>
    <skill>chivalry</skill>
    <icon>last_stand</icon>
    <tagline>"You will break before I do!"</tagline>
    <description>

      At the start of your turn, if HP &lt; 25, gain ⮃10 shield⮃, plus 0.50 per chivalry level.
      [p]Cooldown: ⮃100 turns⮃.

    </description>
    <type>passive</type>
    <subType>1_Unique Passives</subType>
    <passiveInfo>
      <triggers>
        <triggers>
          KEY last_stand_trigger;
          WHEN PlayerTurnStart;
          AND PlayerHasHealth -> lessthan:25;
          AND NOT HasStatusEffect -> key:last_stand_cooldown_1, target:player;
          THEN CalcParam -> key:last_stand_health, amount:0.50, multiplierSkill:chivalry;
          THEN GiveShield -> amount:{{last_stand_health}};
          THEN GiveShield -> amount:10;
          THEN ApplyStatusEffect -> key:last_stand_cooldown_1, target:player;
          THEN PlaySound -> key:buff_02;
        </triggers>
      </triggers>
    </passiveInfo>
    <unlockInfo>
      <autoUnlock>-1</autoUnlock>
      <autoDiscover>0</autoDiscover>
      <unlockRequirements>
        <requiredPoints>2</requiredPoints>
        <requires>bravery OR heroic_onslaught</requires>
      </unlockRequirements>
    </unlockInfo>
  </ability>
</abilities>
