protector_of_the_realm.xml

<abilities>
  <ability>
    <name>Protector of the Realm</name>
    <key>protector_of_the_realm</key>
    <skill>chivalry</skill>
    <icon>protector_of_the_realm</icon>
    <tagline>"I am the shield that protects this land."</tagline>
    <description>
      Whenever an attack damages you, X% chance to gain [b]Protector of the Realm[/b] for 3 turns, where X is
      your Chivalry level. Stacks up to 5 times.
      [p][b]Protector of the Realm[/b]: +10% Physical Resist, +3 Health Recovery
    </description>
    <type>passive</type>
    <subType>1_Unique Passives</subType>
    <passiveInfo>
      <triggers>
        <triggers>
          KEY protector_of_the_realm_trigger;
          WHEN PlayerIsAttacked -> chance:0.01, damageDealt:true, skillScaling:chivalry;
          THEN ApplyStatusEffect -> key:«LINK:protector_of_the_realm_status», target:player;
        </triggers>
      </triggers>
    </passiveInfo>
    <unlockInfo>
      <autoDiscover>0</autoDiscover>
      <unlockRequirements>
        <requiredPoints>4</requiredPoints>
        <requires>otherworldly_protection</requires>
      </unlockRequirements>
    </unlockInfo>
    <statusEffects>
      <statusEffects>
        <turns>3</turns>
        <name>Protector of the Realm</name>
        <key>protector_of_the_realm_status</key>
        <icon>protector_of_the_realm</icon>
        <allowMany>true</allowMany>
        <reduceOnStartOfTurn>true</reduceOnStartOfTurn>
        <modifiers>
          <modifiers>
            <type>PhysicalResist</type>
            <amount>0.1</amount>
          </modifiers>
          <modifiers>
            <type>OnTurnHealthGain</type>
            <amount>3.0</amount>
          </modifiers>
        </modifiers>
      </statusEffects>
    </statusEffects>
  </ability>
</abilities>