executioners_strike.xml
<abilities>
<ability>
<name>Executioner's Strike</name>
<key>executioners_strike</key>
<skill>Axes</skill>
<icon>executioners_strike</icon>
<tagline>"No one can escape their fate. Not even you."</tagline>
<description>
Attempt to execute a foe, attacking with +15 accuracy and dealing an additional ⮃1% damage⮃ for every 1%
of target's missing health.
</description>
<type>Target</type>
<abilitySoundPack>executioners_strike</abilitySoundPack>
<cost>30.0</cost>
<cooldown>5</cooldown>
<targetInfo>
<type>TileSelection</type>
<aoeTargeting>
<selectionArea>
<type>square</type>
<allowTargets>
<allowCreature>true</allowCreature>
<allowEmpty>false</allowEmpty>
<allowPlayer>false</allowPlayer>
</allowTargets>
<params>
<params type="width">0</params>
<params type="height">0</params>
<params type="expandStat">Range</params>
</params>
</selectionArea>
<targetArea>
<type>square</type>
<params>
<params type="width">0</params>
<params type="height">0</params>
</params>
</targetArea>
</aoeTargeting>
<abilityUseTime>
<type>weapon</type>
</abilityUseTime>
<postTargetEffects>
<postTargetEffect>
IF PlayerHasAbility -> key:verdict_stacks;
THEN write_log -> logAfterCombat:true, text:Your attack consumes {{verdict_stacks}} verdict
stacks.,
type:combat;
</postTargetEffect>
<postTargetEffect>
IF PlayerHasAbility -> key:verdict_stacks;
AND GlobalFlagCompare -> key:verdict_stacks, greater_than:0;
THEN ModifyGlobalFlag -> global_flag:verdict_stacks, operation:set, amount:0;
THEN RemoveStatusEffect -> key:«LINK:executioners_verdict», target:player;
</postTargetEffect>
</postTargetEffects>
</targetInfo>
<unlockInfo>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>3</requiredPoints>
</unlockRequirements>
</unlockInfo>
<extraTexts>
<extraTexts>
{{upgrade_text -> ability:verdict_stacks, text:+10% damage for every stack of Executioners Verdict.}}
</extraTexts>
</extraTexts>
<requirements>
<requirements>
<type>Weapon</type>
<params>
<params type="weapon">Axe</params>
</params>
</requirements>
</requirements>
<attacks>
<attacks>
<count>0</count>
<animation>executioners_strike</animation>
<modifiers>
<modifiers>
<type>MissingHealthDamage</type>
<amount>0.01</amount>
</modifiers>
<modifiers>
<type>Accuracy</type>
<amount>15.0</amount>
</modifiers>
<modifiers>
<type>Damage</type>
<amount>0.0</amount>
<modifierConversion>
<type>Flag</type>
<flag>verdict_stacks</flag>
<multiplier>0.1</multiplier>
</modifierConversion>
</modifiers>
</modifiers>
</attacks>
</attacks>
</ability>
</abilities>