low_grip.xml
<abilities>
<ability>
<name>Low Grip</name>
<key>low_grip</key>
<skill>staffs</skill>
<icon>low_grip</icon>
<tagline>"You think yourself safe from my staff? Think again!"</tagline>
<description>
Shift the grasp on your staff down to one end, increasing reach but reducing speed.
[p]+1 Attack Range
[n]-20 Attack Speed
[p]Whenever you attack, ⮃+40%⮃ chance to gain Movement Advantage on your next turn.
[p]Movement Advantage grants a free tile of movement.
</description>
<type>toggle</type>
<subType>2_Abilities</subType>
<cost>0.0</cost>
<cooldown>3</cooldown>
<toggleInfo>
<actionText>
Whenever you attack, +40% chance to gain Movement Advantage on your next turn.
</actionText>
<modifiers>
<modifiers>
<type>AttackSpeedBonus</type>
<amount>-20.0</amount>
</modifiers>
<modifiers>
<type>Range</type>
<amount>1.0</amount>
</modifiers>
<modifiers>
<type>AttackCost</type>
<amount>5.0</amount>
</modifiers>
</modifiers>
<triggers>
<triggers>
KEY low_grip_1;
WHEN PlayerAttackAnimationComplete;
IF NumberCompare -> key:{{Q:PlayerTargets}}, greater_than:0;
IF Roll -> odds:0.40;
THEN GrantMovementAdvantage -> target:player, nextTurn:true;
</triggers>
</triggers>
</toggleInfo>
<unlockInfo>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>2</requiredPoints>
<requires>fluid_technique</requires>
</unlockRequirements>
</unlockInfo>
<extraTexts>
<extraTexts>
{{upgrade_text -> ability:applied_leverage,
text:Melee attacks against enemies 2 or more tiles away gain +25% Crit Chance.}}
</extraTexts>
</extraTexts>
<requirements>
<requirements>
<type>Weapon</type>
<params>
<params type="weapon">Staff</params>
</params>
</requirements>
</requirements>
</ability>
</abilities>