spinning_sweep.xml
<abilities>
<ability>
<name>Spinning Sweep</name>
<key>spinning_sweep</key>
<skill>staffs</skill>
<icon>spinning_sweep</icon>
<tagline>"Step back foul creatures and feel the wind of my staff!"</tagline>
<description>
Perform an attack on all adjacent targets with +45% knockback chance and +1 knockback
magnitude, which deals -50% damage.
</description>
<type>Target</type>
<subType>2_Abilities</subType>
<abilitySoundPack>club</abilitySoundPack>
<cost>50.0</cost>
<cooldown>10</cooldown>
<targetInfo>
<type>AutoSelf</type>
<autoSelfTargeting>
<targetArea>
<type>square</type>
<allowTargets>
<allowCreature>true</allowCreature>
<allowEmpty>true</allowEmpty>
<allowPlayer>false</allowPlayer>
</allowTargets>
<params>
<params type="width">0</params>
<params type="height">0</params>
<params type="expandStat">Range</params>
</params>
</targetArea>
</autoSelfTargeting>
<abilityUseTime>
<type>weapon</type>
</abilityUseTime>
<effects>
<effect>
THEN ShowAnimation -> key:sweep;
THEN PlaySound -> key:whoosh_6_4;
</effect>
</effects>
</targetInfo>
<unlockInfo>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>2</requiredPoints>
<requires>fluid_technique</requires>
</unlockRequirements>
</unlockInfo>
<extraTexts>
<extraTexts>
{{upgrade_text -> ability:singled_out,
text:If only a single target is in range\, +100% knockback chance.}}
</extraTexts>
</extraTexts>
<requirements>
<requirements>
<type>Weapon</type>
<params>
<params type="weapon">Staff</params>
</params>
</requirements>
</requirements>
<attacks>
<attacks>
<count>0</count>
<modifiers>
<modifiers>
<type>KnockbackChance</type>
<amount>0.45</amount>
</modifiers>
<modifiers>
<type>KnockbackChance</type>
<amount>1.0</amount>
<requiresAbility>singled_out</requiresAbility>
<requirements>
<requirements>
<type>Condition</type>
<params>
<params type="condition">NumberCompare -> key:{{Q:PlayerTargets}}, equals:1
</params>
</params>
</requirements>
</requirements>
</modifiers>
<modifiers>
<type>Damage</type>
<amount>-0.5</amount>
</modifiers>
<modifiers>
<type>KnockbackMagnitude</type>
<amount>1.0</amount>
</modifiers>
</modifiers>
<specialModifiers>
<specialModifiers>
<type>NoSlide</type>
<amount>0</amount>
</specialModifiers>
</specialModifiers>
</attacks>
</attacks>
</ability>
</abilities>