<abilities>
  <ability>
    <hideHitSplash>true</hideHitSplash>
    <isFriendly>true</isFriendly>
    <name>Renew</name>
    <key>renew</key>
    <skill>nature_magic</skill>
    <icon>naturemagic_1</icon>
    <tagline>"The wound is the place where the light enters you."</tagline>
    <description>
      Heal target within ⮃1 tile⮃ for ⮃10 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>
    <subType>1_Abilities</subType>
    <abilitySoundPack>spell_heal</abilitySoundPack>
    <cost>60.0</cost>
    <cooldown>40</cooldown>
    <targetInfo>
      <type>TileSelection</type>
      <aoeTargeting>
        <selectionArea>
          <type>square</type>
          <allowTargets>
            <allowCreature>true</allowCreature>
            <allowEmpty>false</allowEmpty>
            <allowPlayer>true</allowPlayer>
          </allowTargets>
          <params>
            <params type="width">1</params>
            <params type="height">1</params>
          </params>
        </selectionArea>
        <targetArea>
          <type>square</type>
          <params>
            <params type="width">0</params>
            <params type="height">0</params>
          </params>
        </targetArea>
        <fromCenter>true</fromCenter>
      </aoeTargeting>
      <usesAmmo>false</usesAmmo>
      <abilityUseTime>
        <type>standard</type>
      </abilityUseTime>
    </targetInfo>
    <unlockInfo>
      <autoUnlock>-1</autoUnlock>
      <autoDiscover>0</autoDiscover>
      <unlockRequirements>
        <requiredLevel>3</requiredLevel>
        <requiredPoints>2</requiredPoints>
      </unlockRequirements>
    </unlockInfo>
    <requirements>
      <requirements>
        <type>HasStat</type>
        <params>
          <params type="key">EnaliaAttunement</params>
          <params type="amount">1</params>
        </params>
      </requirements>
    </requirements>
    <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:10;
            THEN ApplyStatusEffect -> key:renew_status;
            THEN RemoveRandomWounds -> removeWoundChance:0.15, target:players_attack_target;
          </targetEffects>
          <targetEffects>
            AND HasGlobalData -> key:renew_cure_mutation_unlocked;
            THEN CureNyrisMutation -> target:players_attack_target;
          </targetEffects>
        </targetEffects>
      </attacks>
    </attacks>
  </ability>
</abilities>
