justified_result.xml

<statusEffects>
  <statusEffect>
    <turns>10</turns>
    <name>Justified Result</name>
    <key>justified_result</key>
    <allowMany>false</allowMany>
    <onAttackedEffects>
      <onAttackedEffects>
        AND PlayerIsAttacking;
        THEN RemoveStatusEffect -> key:«LINK:justified_result»;
        THEN GiveHealth -> amount:5, target:player;
        THEN write_log -> logAfterCombat:true, text:Consumed mark for 5 health (Justified Result), type:combat;
      </onAttackedEffects>
    </onAttackedEffects>
  </statusEffect>
</statusEffects>