justified_result.xml

<statusEffects>
  <statusEffect>
    <turns>10</turns>
    <name>Justified Result</name>
    <key>justified_result</key>
    <icon>extended_judgement</icon>
    <allowMany>false</allowMany>
    <description>
      Your next attack on this enemy, hit or miss, uses up the mark and heals you for 5 Health.
    </description>
    <onAttackedEffects>
      <onAttackedEffects>
        AND PlayerLastAttacked;
        THEN RemoveStatusEffect -> key:«LINK:justified_result»;
        THEN GiveHealth -> amount:5, target:player;
        THEN write_log2 -> logAfterCombat:true, alwaysShow:true, text:Consumed mark for 5 health (Justified Result), type:combat;
      </onAttackedEffects>
    </onAttackedEffects>
  </statusEffect>
</statusEffects>