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 3 creatures in front of you with ⮃+35% Stun Chance⮃.
[p]Creatures struck become [b]Terrified[/b] for 3 turns.
[p][b]Terrified[/b]: -35 Dodge
</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:Reaches 1 tile further and hits up to 6 targets. Costs 10 more Energy.}}
</extraTexts>
<extraTexts>
{{upgrade_text -> ability:dreadful_impact, text:The targeted tiles become a Dread Zone for 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>
IF LastAttackDamagedTarget;
THEN ApplyStatusEffect -> key:«LINK:terrifying_cleave_status»;
</targetEffects>
</targetEffects>
</attacks>
</attacks>
</ability>
</abilities>