renew_2.xml
<abilities>
<ability>
<clone>renew</clone>
<key>renew_2</key>
<icon>naturemagic_1</icon>
<description>
Heal target within ⮃2 tiles⮃ for ⮃15 health⮃ with a 15% chance to heal a random wound.
[p]Provides +25% healing efficiency for 30 turns.
[p]{{conditional -> global_data:renew_cure_mutation_unlocked, text:Cures Mutation.}}
</description>
<type>Target</type>
<abilitySoundPack>spell_heal</abilitySoundPack>
<targetInfo>
<type>TileSelection</type>
<aoeTargeting>
<selectionArea>
<type>square</type>
<allowTargets>
<allowCreature>true</allowCreature>
<allowEmpty>false</allowEmpty>
<allowPlayer>true</allowPlayer>
</allowTargets>
<params>
<params type="width">2</params>
<params type="height">2</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>0</requiredLevel>
<requiredPoints>1</requiredPoints>
</unlockRequirements>
<replaces>renew</replaces>
</unlockInfo>
<attacks>
<attacks>
<count>0</count>
<animation>healing</animation>
<specialModifiers>
<specialModifiers>
<type>EffectsOnly</type>
<amount>0</amount>
</specialModifiers>
<specialModifiers>
<type>NonAggressive</type>
<amount>0</amount>
</specialModifiers>
<specialModifiers>
<type>NonPhysical</type>
<amount>0</amount>
</specialModifiers>
<specialModifiers>
<type>IsMagic</type>
<amount>0</amount>
</specialModifiers>
</specialModifiers>
<targetEffects>
<targetEffects>
GiveHealth -> amount:15;
THEN ApplyStatusEffect -> key:«LINK:renew_status»;
THEN RemoveRandomWounds -> removeWoundChance:0.15;
</targetEffects>
<targetEffects>
AND HasGlobalData -> key:renew_cure_mutation_unlocked;
THEN CureNyrisMutation -> target:players_attack_target;
</targetEffects>
</targetEffects>
</attacks>
</attacks>
</ability>
</abilities>