terrifying_cleave.xml
<abilities>
<ability>
<name>Terrifying Cleave</name>
<key>terrifying_cleave</key>
<skill>axes</skill>
<icon>terrifying_cleave</icon>
<tagline>"Get out of my way!"</tagline>
<description>
Cleave up to three targets in front of you with ⮃+35% stun chance⮃.
[p]Targets struck by Terrifying Cleave have -35 dodge for 3 turns.
</description>
<type>Target</type>
<subType>2_Abilities</subType>
<abilitySoundPack>chopper</abilitySoundPack>
<cost>40.0</cost>
<costCalculator>calculator_terrifying_cleave_cost</costCalculator>
<cooldown>10</cooldown>
<targetInfo>
<type>RotationSelection</type>
<rotationTargeting>
<allowTargets>
<allowCreature>true</allowCreature>
<allowEmpty>true</allowEmpty>
<allowPlayer>false</allowPlayer>
</allowTargets>
<shape>3line</shape>
<params>
<params type="stopAtFirstTarget">false</params>
<params type="calculatedLength">calculator_terrifying_cleave_range</params>
</params>
</rotationTargeting>
<abilityUseTime>
<type>weapon</type>
</abilityUseTime>
</targetInfo>
<unlockInfo>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>3</requiredPoints>
<requires>log_chopper</requires>
</unlockRequirements>
</unlockInfo>
<extraTexts>
<extraTexts>
{{upgrade_text -> ability:frightful_reach, text:+1 range\, +10 energy cost.}}
</extraTexts>
<extraTexts>
{{upgrade_text -> ability:dreadful_impact, text:Tiles are marked as a "Dread Zone" for the next 8 turns.}}
</extraTexts>
</extraTexts>
<requirements>
<requirements>
<type>Weapon</type>
<params>
<params type="weapon">Axe</params>
</params>
</requirements>
</requirements>
<attacks>
<attacks>
<count>0</count>
<animation>terrifying_cleave</animation>
<modifiers>
<modifiers>
<type>StunChance</type>
<amount>0.35</amount>
</modifiers>
</modifiers>
<tileEffects>
<tileEffects>
IF PlayerHasAbility -> key:dreadful_impact;
THEN PlaceSquare -> type:dreadful_impact, size:1;
</tileEffects>
</tileEffects>
<targetEffects>
<targetEffects>
THEN ApplyStatusEffect -> key:«LINK:terrifying_cleave_status»;
</targetEffects>
</targetEffects>
</attacks>
</attacks>
</ability>
</abilities>