annoying_little_pest_status.xml

<statusEffects>
  <statusEffect>
    <turns>12</turns>
    <name>Annoying Little Pest</name>
    <key>annoying_little_pest_status</key>
    <icon>pest_control</icon>
    <allowMany>false</allowMany>
    <reduceOnStartOfTurn>true</reduceOnStartOfTurn>
    <description>
      Gain +25 Movement Speed when moving towards one or more Annoying Little Pests.
      [p]
      Your attacks against Annoying Little Pests gain +25 Accuracy and +25% Damage, restore
      10 Energy on hit, and consume the mark.
    </description>
    <onAttackedEffects>
      <onAttackedEffects>
        IF PlayerLastAttacked -> requiresHit:true;
        AND LastAttackedByPlayer;
        AND PlayerHasAbility -> key:pest_control;
        AND WeaponEquipped -> weapon:Bludgeon, target:player;
        THEN GiveEnergy -> amount:10, target:player, queue:postCombat;
        THEN write_log2 -> text:+{{give_energy_result}} energy (Pest Control)., type:combat, queue:postCombat;
        THEN PlaySound -> key:magic_cast_03, queue:postCombat;
        THEN OverheadText -> text:+{{give_energy_result}} energy, target:player, queue:postCombat;
        THEN ShowAnimation -> key:pest_control_reverse, target:player, queue:postCombat;
        THEN RemoveStatusEffect -> key:«LINK:annoying_little_pest_status», queue:postCombat, hold:700;
      </onAttackedEffects>
    </onAttackedEffects>
  </statusEffect>
</statusEffects>