natures_grasp.xml
<abilities>
<ability>
<hideHitSplash>true</hideHitSplash>
<name>Nature's Grasp</name>
<key>natures_grasp</key>
<skill>nature_magic</skill>
<icon>naturemagic_9</icon>
<tagline>"The forest holds fast, and does not yield."</tagline>
<description>
Bind a target within 5 tiles, immobilizing them for ⮃3 turns⮃.
[p]Nature's Grasp is enhanced by nearby Bramble bushes, inflicting an additional 3 true damage per
adjacent bush.
</description>
<type>Target</type>
<subType>1_Abilities</subType>
<abilitySoundPack>bind</abilitySoundPack>
<cost>20.0</cost>
<cooldown>8</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">5</params>
<params type="height">5</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>
<requiredLevel>8</requiredLevel>
<requiredPoints>2</requiredPoints>
</unlockRequirements>
</unlockInfo>
<requirements>
<requirements>
<type>HasStat</type>
<params>
<params type="key">EnaliaAttunement</params>
<params type="amount">2</params>
</params>
</requirements>
</requirements>
<attacks>
<attacks>
<count>0</count>
<animation>spell_bind</animation>
<debuffs>
<debuffs>
<turns>3</turns>
<name>Bind</name>
<key>bind_1</key>
<resistedBy>MagicWarding</resistedBy>
<modifiers>
<modifiers>
<type>MovementDisabled</type>
<amount>1.0</amount>
</modifiers>
<modifiers>
<type>MobilityDisabled</type>
<amount>1.0</amount>
</modifiers>
</modifiers>
</debuffs>
</debuffs>
<specialModifiers>
<specialModifiers>
<type>EffectsOnly</type>
<amount>0</amount>
</specialModifiers>
<specialModifiers>
<type>NonPhysical</type>
<amount>0</amount>
</specialModifiers>
<specialModifiers>
<type>IsMagic</type>
<amount>0</amount>
</specialModifiers>
</specialModifiers>
<targetEffects>
<targetEffects>
THEN CountAdjacentBrambles -> global_flag:bramble_count;
THEN ModifyGlobalFlag -> global_flag:bramble_count, operation:multiply, amount:3;
THEN DealTrueDamage -> use_global_flag:bramble_count,
message:[format\:player]You[format\:normal] deal an additional
[color\:white\,font\:damage]{damage} true[format\:normal] damage
(bramble bushes);
</targetEffects>
</targetEffects>
</attacks>
</attacks>
</ability>
</abilities>