chain_lightning.xml
<abilities>
<ability>
<name>Chain Lightning</name>
<key>chain_lightning</key>
<skill>fulmination</skill>
<icon>chain_lightning</icon>
<description>
Unleash a surge of thunder that strikes a primary target up to 6 tiles away for ⮃16 thunder damage⮃,
then
arcs to up to 2 nearby enemies within 4 tiles, continuing to arc as long as there are valid targets.
[p]Each arc deals ⮃60% of the previous damage⮃. A target can only be struck once.
</description>
<type>Target</type>
<cost>55.0</cost>
<cooldown>16</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">6</params>
<params type="height">6</params>
</params>
</selectionArea>
<targetArea>
<type>square</type>
<params>
<params type="width">0</params>
<params type="height">0</params>
</params>
</targetArea>
</aoeTargeting>
<usesAmmo>false</usesAmmo>
<abilityUseTime>
<type>standard</type>
</abilityUseTime>
</targetInfo>
<unlockInfo>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>3</requiredPoints>
<requires>overload OR static_field</requires>
</unlockRequirements>
</unlockInfo>
<extraTexts>
<extraTexts>
{{upgrade_text -> ability:crackling_touch}}
</extraTexts>
<extraTexts>
{{upgrade_text -> ability:chain_rebound, text:After Chain Lightning arcs\, deal rebound damage to
the
initial target.}}
</extraTexts>
</extraTexts>
<requirements>
<requirements>
<type>HasStat</type>
<params>
<params type="key">TyrosAttunement</params>
<params type="amount">2</params>
</params>
</requirements>
</requirements>
<attacks>
<attacks>
<count>0</count>
<specialModifiers>
<specialModifiers>
<type>EffectsOnly</type>
<amount>0</amount>
</specialModifiers>
<specialModifiers>
<type>NoSlide</type>
<amount>0</amount>
</specialModifiers>
<specialModifiers>
<type>IsMagic</type>
<amount>0</amount>
</specialModifiers>
</specialModifiers>
<targetEffects>
<targetEffects>
THEN ChainLightning -> initialDamage:16, arcCount:2, arcRange:4, damageDecay:0.60,
animation:chain_lightning, sound:lightning_spell_08;
</targetEffects>
</targetEffects>
</attacks>
</attacks>
</ability>
</abilities>