finishing_blow.xml
<abilities>
<ability>
<name>Finishing Blow</name>
<key>finishing_blow</key>
<skill>Bludgeons</skill>
<color>d22609</color>
<icon>finishing_blow</icon>
<tagline>"This blow would not kill a healthy man. You are not a healthy man."</tagline>
<description>
Perform a finishing attack with -35% base damage, but dealing +1.5% damage for every percent
of target's missing health.
</description>
<type>Target</type>
<subType>2_Abilities</subType>
<abilitySoundPack>finishing_blow</abilitySoundPack>
<cost>30.0</cost>
<cooldown>9</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>
</targetInfo>
<unlockInfo>
<autoUnlock>-1</autoUnlock>
<autoDiscover>-1</autoDiscover>
<unlockRequirements>
<requiredLevel>7</requiredLevel>
<requiredPoints>2</requiredPoints>
</unlockRequirements>
</unlockInfo>
<requirements>
<requirements>
<type>Weapon</type>
<params>
<params type="weapon">Bludgeon</params>
</params>
</requirements>
</requirements>
<attacks>
<attacks>
<count>0</count>
<animation>finishing_blow</animation>
<modifiers>
<modifiers>
<type>MissingHealthDamage</type>
<amount>0.015</amount>
</modifiers>
<modifiers>
<type>Damage</type>
<amount>-0.35</amount>
</modifiers>
</modifiers>
</attacks>
</attacks>
</ability>
</abilities>