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;
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>