catching_breath.xml
<abilities>
<ability>
<name>Catching Breath</name>
<key>catching_breath</key>
<skill>Staffs</skill>
<icon>catching_breath</icon>
<tagline></tagline>
<description>
If Movement Advantage is used to step into a tile with no adjacent enemies, gain +12 energy.
[p]
This can be triggered even if Low Grip is not active.
</description>
<type>Passive</type>
<subType>1_Unique Passives</subType>
<passiveInfo>
<triggers>
<triggers>
KEY catching_breath_trigger;
WHEN PlayerMoved -> endTurn:false;
IF NOT EnemiesNearby -> enemies:1, distance:1;
THEN GiveEnergy -> amount:12;
THEN write_log2 -> text:{{give_energy_result}} energy gained (Catching Breath), type:combat;
</triggers>
</triggers>
</passiveInfo>
<unlockInfo>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>1</requiredPoints>
<requires>low_grip</requires>
</unlockRequirements>
</unlockInfo>
<requirements>
<requirements>
<type>Weapon</type>
<params>
<params type="weapon">Staff</params>
</params>
</requirements>
</requirements>
</ability>
</abilities>